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 fab90182cc457c354fe29e2c60631b770cb67d67 Author: Sam Ruby <[email protected]> AuthorDate: Wed Jan 17 18:34:01 2018 -0500 progress towards strict support --- www/board/agenda/views/models/agenda.js.rb | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/www/board/agenda/views/models/agenda.js.rb b/www/board/agenda/views/models/agenda.js.rb index 4b2e2d0..446a732 100644 --- a/www/board/agenda/views/models/agenda.js.rb +++ b/www/board/agenda/views/models/agenda.js.rb @@ -9,6 +9,7 @@ class Agenda @@etag = nil @@digest = nil Vue.util.defineReactive @@date, '' + @@color = 'blank' # (re)-load an agenda, creating instances for each item, and linking # each instance to their next and previous items. @@ -28,8 +29,8 @@ class Agenda # remove president attachments from the normal flow @@index.each do |pres| - match = (pres.title == 'President') and pres.text and pres.text. - match(/Additionally, please see Attachments (\d) through (\d)/) + match = (pres.title == 'President' and pres.text and pres.text. + match(/Additionally, please see Attachments (\d) through (\d)/)) next unless match first = last = nil @@ -142,10 +143,14 @@ class Agenda end # provide read-only access to a number of properties - attr_reader :attach, :title, :owner, :shepherd, :index, :timestamp, :digest + attr_reader :attach, :title, :owner, :shepherd, :timestamp, :digest attr_reader :approved, :roster, :prior_reports, :stats, :people, :notes attr_reader :chair_email, :mail_list, :warnings, :flagged_by + # provide read/write access to other properties + attr_accessor :index + attr_writer :color + def fulltitle @fulltitle || @title end @@ -265,7 +270,11 @@ class Agenda # the default banner color to use for the agenda as a whole def self.color - 'blank' + @@color + end + + def self.color=(color) + @@color = color end # fetch the start date @@ -487,7 +496,9 @@ class Agenda # banner color for this agenda item def color - if not @title + if @color + @color + elsif not @title 'blank' elsif @warnings 'missing' -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
