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 e42c9aa7 Warning during migration
e42c9aa7 is described below

commit e42c9aa7f57b8ed330e4062493b90487e669027a
Author: Sebb <[email protected]>
AuthorDate: Wed Sep 25 00:29:14 2024 +0100

    Warning during migration
---
 www/secretary/workbench/views/index.html.rb | 5 +++++
 www/secretary/workbench/views/parts.html.rb | 5 +++++
 2 files changed, 10 insertions(+)

diff --git a/www/secretary/workbench/views/index.html.rb 
b/www/secretary/workbench/views/index.html.rb
index 8e128605..1aa78370 100644
--- a/www/secretary/workbench/views/index.html.rb
+++ b/www/secretary/workbench/views/index.html.rb
@@ -1,3 +1,5 @@
+require 'whimsy/asf/status'
+
 _html do
   if ENV['RACK_BASE_URI'].to_s + '/' == _.env['REQUEST_URI']
     # not sure why Passenger/rack is eating the trailing slash here.
@@ -5,12 +7,15 @@ _html do
     _base href: _.env['REQUEST_URI']
   end
 
+  unavailable = Status.updates_disallowed_reason # are updates disallowed?
+
   _title 'ASF Secretary Mail'
   _link rel: 'stylesheet', type: 'text/css', href: "secmail.css?#{@cssmtime}"
 
   _header_ do
     _h1.bg_success do
       _a 'ASF Secretary Mail', href: '.'
+      _span.small unavailable if unavailable
     end
     _a 'Deleted messages', href: 'deleted'
     _ '-'
diff --git a/www/secretary/workbench/views/parts.html.rb 
b/www/secretary/workbench/views/parts.html.rb
index 68aa211e..5e049c24 100644
--- a/www/secretary/workbench/views/parts.html.rb
+++ b/www/secretary/workbench/views/parts.html.rb
@@ -1,3 +1,5 @@
+require 'whimsy/asf/status'
+
 #
 # Display the list of parts for a given message
 #
@@ -6,9 +8,12 @@ _html do
   _link rel: 'stylesheet', type: 'text/css',
     href: "../../secmail.css?#{@cssmtime}"
 
+  unavailable = Status.updates_disallowed_reason # are updates disallowed?
+
   _header_ do
     _h3.bg_success do
       _a 'ASF Secretary Mail', href: '../..', target: '_parent'
+      _span.small unavailable if unavailable
     end
   end
 

Reply via email to