点击用户名出异常修改
This commit is contained in:
parent
1b4b21fc19
commit
9ac53e5a0b
|
@ -72,11 +72,12 @@
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% when '6' %>
|
<% when '6' %>
|
||||||
<% if (User.current.logged? &&
|
<%# if (User.current.logged? &&
|
||||||
User.current.admin?
|
User.current.admin?
|
||||||
# && (@project && User.current.member_of?(@project))
|
# && (@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,
|
<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>
|
:taggable_id => obj.id, :taggable_type => object_flag %> </span>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -94,14 +95,8 @@
|
||||||
: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>
|
||||||
|
|
Loading…
Reference in New Issue