Commit 8589f0f4000095583a3a536f4986dd85a379669d
1 parent
a7ba81ea
Exists in
master
and in
4 other branches
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.
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
app/views/public/projects/index.html.haml
... | ... | @@ -9,7 +9,10 @@ |
9 | 9 | %li.clearfix |
10 | 10 | %h5 |
11 | 11 | %i.icon-share |
12 | - = link_to_project project | |
12 | + - if current_user | |
13 | + = link_to_project project | |
14 | + - else | |
15 | + = project.name_with_namespace | |
13 | 16 | .pull-right |
14 | 17 | %pre.dark.tiny git clone #{project.http_url_to_repo} |
15 | 18 | %p.description | ... | ... |