From 2307c0c3c0b07aa9b35ef6b1e6175cd303c8d191 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Fri, 9 Sep 2016 16:00:51 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E5=88=97=E8=A1=A8=EF=BC=8C?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E2=80=9C=E5=85=AC=E5=BC=80"=E5=AD=97?= =?UTF-8?q?=E6=A0=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/users/_project_list.html.erb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/views/users/_project_list.html.erb b/app/views/users/_project_list.html.erb index 828f4f7ac..b13f37874 100644 --- a/app/views/users/_project_list.html.erb +++ b/app/views/users/_project_list.html.erb @@ -44,9 +44,10 @@

<%= link_to project.name, allow_visit ? project_path(project.id,:host=>Setting.host_name) : 'javascript:void(0)', :target => '_blank', :class => "new_project_title fl",:id => "show_project_#{project.id}", :title => (allow_visit ? "#{project.name}" : "私有项目不可访问") %>

- <% unless project.is_public? %> - 私有 - <% end %> + <%# unless project.is_public? %> + + <%# end %> + <%= project.is_public? ? '公开' : '私有' %> <% projectUser = User.where("id=?",project.user_id).first %> <%= link_to "创建者:#{projectUser.try(:realname) != " " ? projectUser.lastname + projectUser.firstname : projectUser.try(:login)}".html_safe, user_path(projectUser) %>