Commit 09655833338b0d5f1295b9aec3a8f36d66062fd4:
    flag todos

Branch: refs/heads/master
Author: Sam Ruby <[email protected]>
Committer: Sam Ruby <[email protected]>
Pusher: rubys <[email protected]>

------------------------------------------------------------
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

Reply via email to