#826 :资源标签不能删除Bug修复

This commit is contained in:
zhanghaitao 2014-08-14 15:11:14 +08:00
parent e18129c935
commit 43cfcce44e
1 changed files with 18 additions and 11 deletions

View File

@ -94,6 +94,13 @@
:taggable_id => obj.id, :taggable_type => object_flag %> </span> :taggable_id => obj.id, :taggable_type => object_flag %> </span>
<% end %> <% end %>
<% end %> <% end %>
<!--添加的删除标签0814添加 -->
<% if obj.author_id == User.current.id %>
<span class='del'> <%= link_to 'x', :controller => "tags", :action => "remove_tag", :remote => true, :tag_name => tag,
:taggable_id => obj.id, :taggable_type => object_flag %> </span>
<% end %>
</span> </span>
</div> </div>