点击用户名出异常修改

This commit is contained in:
zhanghaitao 2014-08-14 15:58:32 +08:00
parent 1b4b21fc19
commit 9ac53e5a0b
1 changed files with 2 additions and 7 deletions

View File

@ -72,11 +72,12 @@
<% end %>
<% when '6' %>
<% if (User.current.logged? &&
<%# if (User.current.logged? &&
User.current.admin?
# && (@project && User.current.member_of?(@project))
)
%>
<% if obj.author_id == User.current.id || User.current.admin?%>
<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 %>
@ -94,14 +95,8 @@
:taggable_id => obj.id, :taggable_type => object_flag %> </span>
<% 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>
</div>