diff options
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/application_helper.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 89b3b6d..72ba3cf 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -23,15 +23,15 @@ module ApplicationHelper ).to_html.html_safe, class: 'markdown') end - # Display current application version - def version_string + # Link to current application version + def version_link version = begin IO.read('.app-version')&.strip rescue 'HEAD' end - tag.div(link_to(version, INCOMMON.repo_url(version), title: 'Read source code'), class: 'app-version') + link_to(version, INCOMMON.repo_url(version), title: 'Read source code') end private |