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 2643177 add discussion items to summary
2643177 is described below
commit 2643177ff3e4ea1953f31591bc496ae58748291a
Author: Sam Ruby <[email protected]>
AuthorDate: Sat Apr 14 21:19:41 2018 -0400
add discussion items to summary
---
www/board/agenda/views/models/agenda.js.rb | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/www/board/agenda/views/models/agenda.js.rb
b/www/board/agenda/views/models/agenda.js.rb
index a022fcf..4434f79 100644
--- a/www/board/agenda/views/models/agenda.js.rb
+++ b/www/board/agenda/views/models/agenda.js.rb
@@ -373,6 +373,18 @@ class Agenda
results << {color: 'available', count: count, href: link,
text: 'special orders'}
+ # discussion items
+ count = 0
+ link = nil
+ Agenda.index.each do |item|
+ if item.attach =~ /^8[.A-Z]+$/
+ count += 1 unless item.attach == '8.' and not item.text
+ link ||= item.href
+ end
+ end
+ results << {color: 'available', count: count, href: link,
+ text: 'discussion items'}
+
# awaiting preapprovals
count = 0
Agenda.index.each {|item| count += 1 if item.color == 'ready'}
--
To stop receiving notification emails like this one, please contact
[email protected].