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 3a760ed  timestamp generated javascript
3a760ed is described below

commit 3a760ed6bd662d75f0813456fb900da22bbd81ed
Author: Sam Ruby <[email protected]>
AuthorDate: Fri Dec 8 14:27:33 2017 -0500

    timestamp generated javascript
---
 www/secretary/workbench/server.rb           | 3 +++
 www/secretary/workbench/views/index.html.rb | 2 +-
 www/secretary/workbench/views/parts.html.rb | 2 +-
 3 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/www/secretary/workbench/server.rb 
b/www/secretary/workbench/server.rb
index 17b7e8e..b55d1ba 100644
--- a/www/secretary/workbench/server.rb
+++ b/www/secretary/workbench/server.rb
@@ -60,6 +60,7 @@ get '/' do
   end
 
   @cssmtime = File.mtime('public/secmail.css').to_i
+  @appmtime = 
Wunderbar::Asset.convert("#{settings.views}/app.js.rb").mtime.to_i
   _html :index
 end
 
@@ -146,6 +147,7 @@ get %r{/(\d{6})/(\w+)/_index_} do |month, hash|
   @headers = message.headers.dup
   @headers.delete :attachments
   @cssmtime = File.mtime('public/secmail.css').to_i
+  @appmtime = 
Wunderbar::Asset.convert("#{settings.views}/app.js.rb").mtime.to_i
   @projects = (ASF::Podling.current+ASF::Committee.pmcs).map(&:name).sort
   _html :parts
 end
@@ -154,6 +156,7 @@ end
 get %r{/(\d{6})/(\w+)/_body_} do |month, hash|
   @message = Mailbox.new(month).find(hash)
   @cssmtime = File.mtime('public/secmail.css').to_i
+  @appmtime = 
Wunderbar::Asset.convert("#{settings.views}/app.js.rb").mtime.to_i
   pass unless @message
   _html :body
 end
diff --git a/www/secretary/workbench/views/index.html.rb 
b/www/secretary/workbench/views/index.html.rb
index 347a31a..af8cca3 100644
--- a/www/secretary/workbench/views/index.html.rb
+++ b/www/secretary/workbench/views/index.html.rb
@@ -16,7 +16,7 @@ _html do
 
   _div_.index!
 
-  _script src: 'app.js'
+  _script src: "./app.js?#{@appmtime}"
   _.render '#index' do
     _Index mbox: @mbox, messages: @messages
   end
diff --git a/www/secretary/workbench/views/parts.html.rb 
b/www/secretary/workbench/views/parts.html.rb
index b9155a4..f188e34 100644
--- a/www/secretary/workbench/views/parts.html.rb
+++ b/www/secretary/workbench/views/parts.html.rb
@@ -90,7 +90,7 @@ _html do
     end
   end
 
-  _script src: '../../app.js'
+  _script src: "../../app.js?#{@appmtime}"
   _.render '#parts' do
     _Parts attachments: @attachments, headers: @headers, projects: @projects
   end

-- 
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].

Reply via email to