This commit is contained in:
lizanle 2015-03-17 09:41:10 +08:00
parent f94222cac7
commit c77c1a81a4
1 changed files with 6 additions and 2 deletions

View File

@ -6,10 +6,14 @@
<tr align="left" height="20">
<td width="30%" ><%= truncate(e.title,:length => 50) %></td>
<td align="center" width="60%">
<%= textAreailizable truncate(e.body,:length => 500) %> &nbsp;
<%= truncate(e.body,:length => 50) %> &nbsp;
</td>
<td style=" margin-right: 1" width="10%">
<%= link_to '查看文章',{:controller => 'discuss_demo',:action => 'show',:id=>e.id} %>
<%= link_to '查看文章',{:controller => 'discuss_demos',:action => 'show',:id=>e.id} %>
</td>
<td>
&nbsp;&nbsp;
<%= link_to '删除文章',discuss_demo_path(e.id), :method => :delete,:confirm => l(:text_are_you_sure) %>
</td>
</tr>
<tr height="20"></tr>