From 2fbf025c2f42d8fd7c4922533adcc5f342e54e03 Mon Sep 17 00:00:00 2001 From: fanqiang <316257774@qq.com> Date: Mon, 14 Oct 2013 10:09:10 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E9=9C=80=E6=B1=82=E7=9A=84?= =?UTF-8?q?=E8=AF=84=E4=BB=B7=EF=BC=8C=E9=9A=90=E8=97=8F=E4=B8=AA=E4=BA=BA?= =?UTF-8?q?=E8=B4=A6=E6=88=B7=E7=9A=84=E9=A6=96=E9=80=89=E9=A1=B9=E5=86=85?= =?UTF-8?q?=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/user.rb | 12 ++++++++++++ app/views/bids/_list_projects.html.erb | 2 +- app/views/bids/_project_list.html.erb | 9 +++++---- app/views/my/account.html.erb | 6 +++--- 4 files changed, 21 insertions(+), 8 deletions(-) diff --git a/app/models/user.rb b/app/models/user.rb index 45c7ae645..1bce98052 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -161,6 +161,18 @@ class User < Principal false end end + + def show_name + unless self.user_extensions.nil? + if self.user_extensions.identity == 2 + firstname + else + lastname+firstname + end + else + lastname+firstname + end + end ## end def count_new_jour diff --git a/app/views/bids/_list_projects.html.erb b/app/views/bids/_list_projects.html.erb index 9a9f2ec70..38e2ece34 100644 --- a/app/views/bids/_list_projects.html.erb +++ b/app/views/bids/_list_projects.html.erb @@ -19,7 +19,7 @@ -