更新版本中隐藏删除
This commit is contained in:
parent
f2f9792203
commit
da7de2c2a2
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue