lib/whimsy/asf/agenda.rb in whimsy-asf-0.0.11 vs lib/whimsy/asf/agenda.rb in whimsy-asf-0.0.12

- old
+ new

@@ -87,16 +87,20 @@ unless @quick # add roster and prior report link whimsy = 'https://whimsy.apache.org' @sections.each do |section, hash| - next unless section =~ /^(4[A-Z]|\d+|[A-Z][A-Z]?)$/ - committee = ASF::Committee.find(hash['title'] ||= 'UNKNOWN') - unless section =~ /^4[A-Z]$/ - hash['roster'] = - "#{whimsy}/roster/committee/#{CGI.escape committee.name}" - end - hash['prior_reports'] = minutes(committee.display_name) + next unless section =~ /^(4[A-Z]|\d+|[A-Z][A-Z]?)$/ + committee = ASF::Committee.find(hash['title'] ||= 'UNKNOWN') + unless section =~ /^4[A-Z]$/ + hash['roster'] = + "#{whimsy}/roster/committee/#{CGI.escape committee.name}" + end + if section =~ /^[A-Z][A-Z]?$/ + hash['stats'] = + "https://reporter.apache.org/?#{CGI.escape committee.name}" + end + hash['prior_reports'] = minutes(committee.display_name) end end # add attach to section @sections.each do |section, hash|