You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2021/11/10 22:51:39 UTC
[whimsy] branch master updated: Ensure there is a value for the
index display
This is an automated email from the ASF dual-hosted git repository.
sebb 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 703c758 Ensure there is a value for the index display
703c758 is described below
commit 703c7584cb5ff562c55ca117630392e4fa048953
Author: Sebb <se...@apache.org>
AuthorDate: Wed Nov 10 22:51:33 2021 +0000
Ensure there is a value for the index display
---
www/secretary/workbench/server.rb | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/www/secretary/workbench/server.rb b/www/secretary/workbench/server.rb
index 78ffc07..3b89a9b 100644
--- a/www/secretary/workbench/server.rb
+++ b/www/secretary/workbench/server.rb
@@ -73,13 +73,14 @@ get '/' do
# Show outstanding emeritus requests
ASF::EmeritusRequestFiles.listnames(true).each do |epoch, file|
- days = (((Time.now.to_i - epoch.to_i).to_f/SECS_TO_DAYS)).round(1)
- id = File.basename(file,'.*')
+ days = (((Time.now.to_i - epoch.to_i).to_f / SECS_TO_DAYS)).round(1)
+ id = File.basename(file, '.*')
@messages << {
+ date: Time.at(epoch.to_i).gmtime.asctime,
time: Time.at(epoch.to_i).gmtime.iso8601,
href: "/roster/committer/#{id}",
from: ASF::Person.find(id).cn,
- subject: "Pending emeritus request - #{days.to_s} days old",
+ subject: "Pending emeritus request - #{days} days old",
status: days < 10.0 ? :emeritusPending : :emeritusReady
}
end