From 33b5f821c4688d0795e122b01225d59c97bf9a38 Mon Sep 17 00:00:00 2001 From: chenmin <19763783@qq.com> Date: Fri, 15 Aug 2014 11:21:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=B4=B4=E5=90=A7=E6=A0=87?= =?UTF-8?q?=E7=AD=BE=E4=B8=8D=E8=83=BD=E5=88=A0=E9=99=A4=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/tags/_tag_name.html.erb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/views/tags/_tag_name.html.erb b/app/views/tags/_tag_name.html.erb index f5057aba3..7ecb25a9e 100644 --- a/app/views/tags/_tag_name.html.erb +++ b/app/views/tags/_tag_name.html.erb @@ -70,7 +70,14 @@ :taggable_id => obj.id, :taggable_type => object_flag %> <% end %> + <% when '5' %> + <% if Forum.find(params[:id]) %> + <% if Forum.find(params[:id]).creator_id == User.current.id %> + <%= link_to 'x', :controller => "tags", :action => "remove_tag", :remote => true, :tag_name => tag, + :taggable_id => obj.id, :taggable_type => object_flag %> + <% end %> + <% end %> <% when '6' %> <% if (User.current.logged? && User.current.admin?