whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] branch master updated: force reload of CSS on change
Date Tue, 02 Jan 2018 15:33:14 GMT
This is an automated email from the ASF dual-hosted git repository.

rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new a838bf4  force reload of CSS on change
a838bf4 is described below

commit a838bf4b4d4dbba4a2118ea81b4985a8539eeaff
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Tue Jan 2 10:33:04 2018 -0500

    force reload of CSS on change
---
 www/project/icla/main.rb           | 2 ++
 www/project/icla/views/app.html.rb | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/www/project/icla/main.rb b/www/project/icla/main.rb
index 8a6000c..d7b2a2b 100755
--- a/www/project/icla/main.rb
+++ b/www/project/icla/main.rb
@@ -56,6 +56,8 @@ get '/invite' do
   @ppmcs = projects['ppmcs']
   @pmc_mail = projects['pmcmail']
 
+  @cssmtime = File.mtime('public/css/icla.css')
+
   # render the HTML for the application
   _html :app
 end
diff --git a/www/project/icla/views/app.html.rb b/www/project/icla/views/app.html.rb
index 74a7fd7..b106da4 100755
--- a/www/project/icla/views/app.html.rb
+++ b/www/project/icla/views/app.html.rb
@@ -9,7 +9,7 @@ _html lang: 'en', _width: '80' do
       href: '/favicon.ico'
     _title 'ASF ICLA demo'
     _link href: 'https://www.apache.org/css/styles.css', rel: 'stylesheet'
-    _link href: 'css/icla.css', rel: 'stylesheet'
+    _link href: "css/icla.css?#{@cssmtime}", rel: 'stylesheet'
 
     _.comment! 'Licensed to the Apache Software Foundation (ASF) under one ' +
       'or more contributor license agreements. See the NOTICE file ' +

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <commits@whimsical.apache.org>'].

Mime
View raw message