diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-02-12 20:31:55 -0800 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-03-09 20:58:28 -0700 |
commit | 345fd545bf6d5f161686a09c4583a1e7488fd9c6 (patch) | |
tree | e103fc9da89da300adf6106a4b387e748850e9a1 /app | |
parent | f5eb5fdd5e6d8bcf3ad52749e99a378e411ff8ad (diff) | |
download | gitlab-ce-345fd545bf6d5f161686a09c4583a1e7488fd9c6.tar.gz |
Add version check badge to admin area
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/version_check_helper.rb | 5 | ||||
-rw-r--r-- | app/views/admin/dashboard/index.html.haml | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/app/helpers/version_check_helper.rb b/app/helpers/version_check_helper.rb new file mode 100644 index 00000000000..63d8eaeb2bd --- /dev/null +++ b/app/helpers/version_check_helper.rb @@ -0,0 +1,5 @@ +module VersionCheckHelper + def version_status_badge + image_tag VersionCheck.new.url + end +end diff --git a/app/views/admin/dashboard/index.html.haml b/app/views/admin/dashboard/index.html.haml index d1c586328a2..6b4ff4b330d 100644 --- a/app/views/admin/dashboard/index.html.haml +++ b/app/views/admin/dashboard/index.html.haml @@ -56,7 +56,11 @@ %span.light.pull-right = boolean_to_icon Gitlab.config.omniauth.enabled .col-md-4 - %h4 Components + %h4 + Components + .pull-right + = version_status_badge + %hr %p GitLab |