diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-09-23 16:01:35 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-09-23 16:01:35 -0400 |
commit | ebcd503e9372df6b5d3dfecbb548b0bd1e3d1ecb (patch) | |
tree | 25b02a6d699a696a3e2d43f1786cb6c9932308e7 /app/views/help/index.html.haml | |
parent | fd6b5099fbb0198cbf02ffcb647cb93253a42c0f (diff) | |
download | gitlab-ce-ebcd503e9372df6b5d3dfecbb548b0bd1e3d1ecb.tar.gz |
Only surface version information on help index to admins
Closes #2721
Diffstat (limited to 'app/views/help/index.html.haml')
-rw-r--r-- | app/views/help/index.html.haml | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/app/views/help/index.html.haml b/app/views/help/index.html.haml index ab7ed1b5d95..5e0cf06e15e 100644 --- a/app/views/help/index.html.haml +++ b/app/views/help/index.html.haml @@ -1,10 +1,11 @@ %div %h1 GitLab - %span= Gitlab::VERSION - %small= Gitlab::REVISION - - if current_application_settings.version_check_enabled - = version_status_badge + - if current_user && current_user.admin? + %span= Gitlab::VERSION + %small= Gitlab::REVISION + - if current_application_settings.version_check_enabled + = version_status_badge %p.slead GitLab is open source software to collaborate on code. %br |