From 31245f6fb2c7af4b1d551f8937b9f28e7effefac Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Mon, 14 Jul 2014 13:55:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=BD=AF=E4=BB=B6=E5=88=9B?= =?UTF-8?q?=E5=AE=A2=E5=88=97=E8=A1=A8=E4=B8=AD=E6=9F=90=E4=BA=9B=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E7=9A=84=E7=94=A8=E6=88=B7=E5=90=8D=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E4=B8=8D=E4=B8=BA=E8=B6=85=E9=93=BE=E6=8E=A5(=E6=9C=AA?= =?UTF-8?q?=E6=BF=80=E6=B4=BB=E8=B4=A6=E6=88=B7)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/helpers/application_helper.rb | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 4f6cb3e95..bf125972b 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -80,11 +80,12 @@ module ApplicationHelper name = h(user.name(options[:format])) end - if user.active? || (User.current.admin? && user.logged?) - link_to name, {:controller=> 'users', :action => 'show', id: user.id, host: Setting.user_domain}, :class => user.css_classes - else - name - end + #if user.active? || (User.current.admin? && user.logged?) + # link_to name, {:controller=> 'users', :action => 'show', id: user.id, host: Setting.user_domain}, :class => user.css_classes + #else + # name + #end + link_to name, {:controller=> 'users', :action => 'show', id: user.id, host: Setting.user_domain}, :class => user.css_classes else h(user.to_s) end