更新版本中隐藏删除

This commit is contained in:
huang 2016-10-15 11:12:12 +08:00
parent f2f9792203
commit da7de2c2a2
1 changed files with 8 additions and 8 deletions

View File

@ -14,7 +14,7 @@
<th><%= @attachment.downloads %></th>
<th><%= @attachment.try(:quotes).to_i %></th>
<th><%= format_time(@attachment.created_on) %></th>
<th></th>
<!--<th></th>-->
</tr>
<% @attachment_histories.each do |history| %>
<tr>
@ -24,14 +24,14 @@
<th><%= history.downloads %></th>
<th><%= history.try(:quotes).to_i %></th>
<th><%= format_time(history.created_on) %></th>
<th>
<%= link_to( '删除资源', attachment_path(history.attachment, :history_id => history, :type => "history"),
:remote => true,
:data => {:confirm => l(:text_are_you_sure)},
:method => :delete,
:class => "postOptionLink",
<!--<th>-->
<%#= link_to( '删除资源', attachment_path(history.attachment, :history_id => history, :type => "history"),
# :remote => true,
# :data => {:confirm => l(:text_are_you_sure)},
# :method => :delete,
# :class => "postOptionLink",
:class => "btn") if allow_to_delete_attachment(history) %>
</th>
<!--</th>-->
</tr>
<% end %>
</tbody>