更新版本中隐藏删除
This commit is contained in:
parent
f2f9792203
commit
da7de2c2a2
|
@ -14,7 +14,7 @@
|
||||||
<th><%= @attachment.downloads %></th>
|
<th><%= @attachment.downloads %></th>
|
||||||
<th><%= @attachment.try(:quotes).to_i %></th>
|
<th><%= @attachment.try(:quotes).to_i %></th>
|
||||||
<th><%= format_time(@attachment.created_on) %></th>
|
<th><%= format_time(@attachment.created_on) %></th>
|
||||||
<th></th>
|
<!--<th></th>-->
|
||||||
</tr>
|
</tr>
|
||||||
<% @attachment_histories.each do |history| %>
|
<% @attachment_histories.each do |history| %>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -24,14 +24,14 @@
|
||||||
<th><%= history.downloads %></th>
|
<th><%= history.downloads %></th>
|
||||||
<th><%= history.try(:quotes).to_i %></th>
|
<th><%= history.try(:quotes).to_i %></th>
|
||||||
<th><%= format_time(history.created_on) %></th>
|
<th><%= format_time(history.created_on) %></th>
|
||||||
<th>
|
<!--<th>-->
|
||||||
<%= link_to( '删除资源', attachment_path(history.attachment, :history_id => history, :type => "history"),
|
<%#= link_to( '删除资源', attachment_path(history.attachment, :history_id => history, :type => "history"),
|
||||||
:remote => true,
|
# :remote => true,
|
||||||
:data => {:confirm => l(:text_are_you_sure)},
|
# :data => {:confirm => l(:text_are_you_sure)},
|
||||||
:method => :delete,
|
# :method => :delete,
|
||||||
:class => "postOptionLink",
|
# :class => "postOptionLink",
|
||||||
:class => "btn") if allow_to_delete_attachment(history) %>
|
:class => "btn") if allow_to_delete_attachment(history) %>
|
||||||
</th>
|
<!--</th>-->
|
||||||
</tr>
|
</tr>
|
||||||
<% end %>
|
<% end %>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
Loading…
Reference in New Issue