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

📄 _item.rhtml

📁 用ruby on rails写的一个博客程序,还不错..ruby on rails的确是个好框架
💻 RHTML
字号:
<tr class="<%= state_class(item) %>">  <td class="field"><input class= "feedback_check" type="checkbox" name="feedback_check[<%= item.id %>]"/></td>  <td class="operation"><%=h item.state %></td>  <td class="field"><%=h item.class %></td>  <td class="field"><%= link_to_article_edit item.article %></td>  <td class="field">    <%=h (item.author || '(unknown)').slice(0,40) %><br/>    <% if item.url -%>    <%= link_to h(truncate(item.url.to_s)), item.url %><br/>    <% end -%>        <%=h item.email.to_s.slice(0,40) %>  </td>  <td class="field"><%=h truncate(item.body,80)%></td>  <td class="field"><%=h item.ip %></td>  <td class="field"><%=item.created_at.strftime("%d/%m/%Y at %H:%M")%></td>  <td class="operation"><%= link_to image_tag('show.png', :alt => "show", :title => "Show content"), :controller => 'comments', :article_id => item.article_id, :action => 'show', :id => item.id %></td>  <td class="operation"><%= link_to image_tag('edit.png', :alt => "edit", :title => "Edit content"), :controller => 'comments', :article_id => item.article_id, :action => 'edit', :id => item.id %></td>  <td class="operation"><%= link_to image_tag('delete.png'), {:action => 'delete', :id => item.id, :search => params[:search], :page => params[:page] },  :confirm => "Are you sure?", :method => :post %></td></tr>

⌨️ 快捷键说明

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