⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 _articles.rhtml

📁 用ruby on rails写的一个博客程序,还不错..ruby on rails的确是个好框架
💻 RHTML
字号:
<table cellspacing="1" cellpadding="0"><tr>  <th><%= _("Post title")%></th>  <th><%= _("Posted at")%></th>  <th><%= _("Comments")%></th>  <th><%= _("Trackbacks")%></th>  <th><%= _("Status")%></th>  <th colspan="3" style="text-align: center;">Action</th></tr><% for article in @articles %><tr <%= alternate_class %>>  <td> <%= link_to_permalink article, h(article.title) %></td>  <td><%= article.published_at.strftime("%d/%m/%Y at %H:%M") %></td>  <td><%= link_to _(pluralize(article.comments.size, 'comment')), :controller => '/admin/comments', :article_id => article, :action => 'list' %></td>  <td><%= link_to _(pluralize(article.trackbacks.size, 'trackback')), :controller => '/admin/trackbacks', :article_id => article, :action => 'list' %></td>  <td class="operation"><%= (article.published?) ? image_tag('checked.png', :alt => "online", :title => _("Online")) : image_tag('cancel.png', :alt => "offline", :title => _("Offline")) %></td>  <td class="operation"><%= link_to image_tag('show.png', :alt => "View article", :title => "Preview article"), {:action => "show", :id => article.id} %></td>  <td class="operation"><%= link_to_edit article %></td>  <td class="operation"><%= link_to_destroy article %></td></tr><% end %></table>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -