From 8589f0f4000095583a3a536f4986dd85a379669d Mon Sep 17 00:00:00 2001 From: Stephen Lottermoser Date: Thu, 2 May 2013 13:25:31 -0700 Subject: [PATCH] Non-logged in users see public project names as static text In the public area, project names are shown as static text for non-logged in users, while logged-in users are given project names as links they can follow to the project's page. --- app/views/public/projects/index.html.haml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/views/public/projects/index.html.haml b/app/views/public/projects/index.html.haml index e66851ead..c31fcfd15 100644 --- a/app/views/public/projects/index.html.haml +++ b/app/views/public/projects/index.html.haml @@ -9,7 +9,10 @@ %li.clearfix %h5 %i.icon-share - = link_to_project project + - if current_user + = link_to_project project + - else + = project.name_with_namespace .pull-right %pre.dark.tiny git clone #{project.http_url_to_repo} %p.description -- 2.11.0