From 88568317a8829a50a22c1151b9580c0d8fe60c1f Mon Sep 17 00:00:00 2001 From: Travis Miller Date: Mon, 4 Sep 2017 15:52:00 -0500 Subject: [PATCH] Add GitLab-Pages version to Admin Dashboard --- app/views/admin/dashboard/index.html.haml | 5 +++++ .../36953-add-gitLab-pages-version-to-admin-dashboard.yml | 5 +++++ lib/gitlab/pages.rb | 5 +++++ 3 files changed, 15 insertions(+) create mode 100644 changelogs/unreleased/36953-add-gitLab-pages-version-to-admin-dashboard.yml create mode 100644 lib/gitlab/pages.rb diff --git a/app/views/admin/dashboard/index.html.haml b/app/views/admin/dashboard/index.html.haml index 069f8f89e0b..703f4165128 100644 --- a/app/views/admin/dashboard/index.html.haml +++ b/app/views/admin/dashboard/index.html.haml @@ -111,6 +111,11 @@ GitLab API %span.pull-right = API::API::version + - if Gitlab.config.pages.enabled + %p + GitLab Pages + %span.pull-right + = Gitlab::Pages::VERSION %p Git %span.pull-right diff --git a/changelogs/unreleased/36953-add-gitLab-pages-version-to-admin-dashboard.yml b/changelogs/unreleased/36953-add-gitLab-pages-version-to-admin-dashboard.yml new file mode 100644 index 00000000000..680ef0cef92 --- /dev/null +++ b/changelogs/unreleased/36953-add-gitLab-pages-version-to-admin-dashboard.yml @@ -0,0 +1,5 @@ +--- +title: Add GitLab-Pages version to Admin Dashboard +merge_request: 14040 +author: @travismiller +type: added diff --git a/lib/gitlab/pages.rb b/lib/gitlab/pages.rb new file mode 100644 index 00000000000..981ef8faa9a --- /dev/null +++ b/lib/gitlab/pages.rb @@ -0,0 +1,5 @@ +module Gitlab + module Pages + VERSION = File.read(Rails.root.join("GITLAB_PAGES_VERSION")).strip.freeze + end +end