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

📄 list.rhtml

📁 用ruby on rails写的一个博客程序,还不错..ruby on rails的确是个好框架
💻 RHTML
字号:
  <% @page_heading = "Comments for #{ link_to h(@article.title), :controller => '/admin/content', :action => 'show', :id => @article }" %>  <% content_for('tasks') do %>    <%= task_new('Write a comment') %>    <li><%= link_to _('Manage articles'), :controller => '/admin/content', :action => 'list' %></li>  <% end %>   <div class="list">	    <table>    <tr>      <th><%= _("Author")%></th>      <th><%= _("Email")%></th>      <th><%= _("Body")%></th>      <th><%= _("IP")%></th>      <th><%= _("Posted date")%></th>	  <th><%= _("Status")%></th>	  <th colspan="3"><%= _("Action") %></th>    </tr>    <% for comment in @comments -%>    <tr>      <td class="field"> <%=link_to_unless comment.url.blank?, h(comment.author), comment.url %></td>      <td class="field"><%=h comment.email %></td>      <td class="field"><%= link_to_permalink comment, truncate((comment.body).strip_html) %></td>      <td class="field"><%=h comment.ip %></td>      <td class="field"><%=comment.created_at.strftime("%d/%m/%Y at %H:%M") %></td>	  <td class="operation"><%= image_tag 'checked.png' %></td>	  <td class="operation"><%= link_to_show comment %></td>      <td class="operation"><%= link_to_edit comment %></td>      <td class="operation"><%= link_to_destroy comment %></td>        </tr>      <% end -%>    </table>  </div>

⌨️ 快捷键说明

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