diff options
author | Ash Furrow <ash@ashfurrow.com> | 2017-04-20 21:30:59 -0400 |
---|---|---|
committer | Eugen <eugen@zeonfederated.com> | 2017-04-21 03:30:59 +0200 |
commit | a0ed88a99b736cc786b048126580a7e73c68b07e (patch) | |
tree | a1d53aa9f65a0cfe4717ca3f31819bb3c74bd490 /app/views/about | |
parent | 25d2853db2cb6603c398b6622526e579e974d593 (diff) |
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.
Diffstat (limited to 'app/views/about')
-rw-r--r-- | app/views/about/_version.html.haml | 4 | ||||
-rw-r--r-- | app/views/about/more.html.haml | 1 |
2 files changed, 5 insertions, 0 deletions
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 |