whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sam Ruby <ru...@apache.org>
Subject [whimsy.git] [1/1] Commit 0965583: flag todos
Date Tue, 15 Mar 2016 21:22:17 GMT
Commit 09655833338b0d5f1295b9aec3a8f36d66062fd4:
    flag todos


Branch: refs/heads/master
Author: Sam Ruby <rubys@intertwingly.net>
Committer: Sam Ruby <rubys@intertwingly.net>
Pusher: rubys <rubys@apache.org>

------------------------------------------------------------
www/board/agenda/views/pages/report.js.rb                    | ++++++ -
------------------------------------------------------------
7 changes: 6 additions, 1 deletions.
------------------------------------------------------------


diff --git a/www/board/agenda/views/pages/report.js.rb b/www/board/agenda/views/pages/report.js.rb
index 8d4ac71..a0cb64f 100644
--- a/www/board/agenda/views/pages/report.js.rb
+++ b/www/board/agenda/views/pages/report.js.rb
@@ -63,7 +63,7 @@ def componentWillMount()
 
   def componentWillReceiveProps()
     # determine what text filters to run
-    @filters = [self.linebreak, hotlink, self.privates, self.jira]
+    @filters = [self.linebreak, self.todo, hotlink, self.privates, self.jira]
     @filters << self.localtime if @@item.title == 'Call to order'
     @filters << self.names if @@item.people
     @filters << self.president_attachments if @@item.title == 'President'
@@ -91,6 +91,11 @@ def componentWillReceiveProps()
   ### filters
   #
 
+  # Highlight todos
+  def todo(text)
+    return text.gsub 'TODO', '<span class="missing">TODO</span>'
+  end
+
   # Break long lines
   def linebreak(text)
     # find long, breakable lines

Mime
View raw message