Merge branch '36953-add-gitLab-pages-version-to-admin-dashboard' into 'master'

Add GitLab-Pages version to Admin Dashboard

Closes #36953

See merge request !14040
This commit is contained in:
Rémy Coutable 2017-09-12 10:16:01 +00:00
commit c36eeffbe8
3 changed files with 15 additions and 0 deletions

View file

@ -111,6 +111,11 @@
GitLab API GitLab API
%span.pull-right %span.pull-right
= API::API::version = API::API::version
- if Gitlab.config.pages.enabled
%p
GitLab Pages
%span.pull-right
= Gitlab::Pages::VERSION
%p %p
Git Git
%span.pull-right %span.pull-right

View file

@ -0,0 +1,5 @@
---
title: Add GitLab-Pages version to Admin Dashboard
merge_request: 14040
author: @travismiller
type: added

5
lib/gitlab/pages.rb Normal file
View file

@ -0,0 +1,5 @@
module Gitlab
module Pages
VERSION = File.read(Rails.root.join("GITLAB_PAGES_VERSION")).strip.freeze
end
end