From a0ed88a99b736cc786b048126580a7e73c68b07e Mon Sep 17 00:00:00 2001 From: Ash Furrow Date: Thu, 20 Apr 2017 21:30:59 -0400 Subject: Adds version to about/more and API (#2181) * Adds version. * Cleans up code. * Removes standalone endpoint and adds version to instance endpoint. * Addresses feedback from #2181. --- app/views/about/_version.html.haml | 4 ++++ app/views/about/more.html.haml | 1 + 2 files changed, 5 insertions(+) create mode 100644 app/views/about/_version.html.haml (limited to 'app/views/about') diff --git a/app/views/about/_version.html.haml b/app/views/about/_version.html.haml new file mode 100644 index 000000000..f8ebc4c6d --- /dev/null +++ b/app/views/about/_version.html.haml @@ -0,0 +1,4 @@ +.panel + .panel-header= t 'about.version' + .panel-body + %strong= version.version_number diff --git a/app/views/about/more.html.haml b/app/views/about/more.html.haml index 8f9cd2f6a..ab5b21850 100644 --- a/app/views/about/more.html.haml +++ b/app/views/about/more.html.haml @@ -30,3 +30,4 @@ .sidebar = render 'contact', contact: @instance_presenter = render 'links' + = render 'version', version: @instance_presenter -- cgit