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.
This commit is contained in:
Stephen Lottermoser 2013-05-02 13:25:31 -07:00
parent a7ba81ea5d
commit 8589f0f400
1 changed files with 4 additions and 1 deletions

View File

@ -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