From 73b3fffdbe730c33480682c40e7e8271e75ddf59 Mon Sep 17 00:00:00 2001 From: hellekin Date: Sat, 23 Jan 2021 15:35:49 +0100 Subject: Move CSS to Webpack Using both the asset pipeline and webpack is confusing and leads to unpredictable results in production. This commit moves all (S)CSS to Webpack under `app/javascript/scss` so that we can test whether the development interface results in a consistent production deployment. In order to load the ForkAwesome fonts we used a long path: `$fa-font-path: "../../../node_modules/fork-awesome/fonts";` Not sure whether this works... --- app/helpers/application_helper.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/helpers/application_helper.rb') 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 -- cgit v1.2.3