whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] 01/02: Add explanatory text
Date Thu, 21 Nov 2019 18:06:03 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

commit 1d5a2c39bbf22779296455e0a08ccd3ff3c1aa39
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Thu Nov 21 09:06:58 2019 -0500

    Add explanatory text
---
 www/board/agenda/views/pages/flagged.js.rb | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/www/board/agenda/views/pages/flagged.js.rb b/www/board/agenda/views/pages/flagged.js.rb
index 1390eb2..aa1f403 100644
--- a/www/board/agenda/views/pages/flagged.js.rb
+++ b/www/board/agenda/views/pages/flagged.js.rb
@@ -10,6 +10,21 @@ class Flagged < Vue
     meeting_day = Minutes.started or
       Date.new().toISOString().slice(0,10) >= Agenda.date
 
+    if meeting_day
+      _p do
+        _ 'Currently showing '; _span.commented 'flagged'; _ ', '
+        _span.missing 'missing'; _ ', and '; _span.ready 'unapproved'
+        _ ' reports.'
+      end
+    else
+      _p do
+        _ 'Currently only showing '; _span.commented 'flagged'
+        _ 'reports. Starting with the meeting day, this list will also include '
+        _span.missing 'missing'; _ ', and '
+        _span.ready 'unapproved'; _ ' reports too.'
+      end
+    end
+
     Agenda.index.each do |item|
       flagged = item.flagged_by || Pending.flagged.include?(item.attach)
 


Mime
View raw message