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 1eab2b0: oops, forgot a file
Date Tue, 15 Mar 2016 22:01:03 GMT
Commit 1eab2b09f4bbf0ed6c57d7db1971bd0c5cdba68f:
    oops, forgot a file


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/elements/info.js.rb                   | +++++++++++ 
------------------------------------------------------------
44 changes: 44 additions, 0 deletions.
------------------------------------------------------------


diff --git a/www/board/agenda/views/elements/info.js.rb b/www/board/agenda/views/elements/info.js.rb
new file mode 100644
index 0000000..39a7f94
--- /dev/null
+++ b/www/board/agenda/views/elements/info.js.rb
@@ -0,0 +1,44 @@
+class Info < React
+  def render
+    _dl.dl_horizontal class: @@position do
+      _dt 'Attach'
+      _dd @@item.attach
+
+      if @@item.owner
+        _dt 'Author'
+        _dd @@item.owner
+      end
+
+      if @@item.shepherd
+        _dt 'Shepherd'
+        _dd @@item.shepherd
+      end
+
+      if @@item.flagged_by and not @@item.flagged_by.empty?
+        _dt 'Flagged By'
+        _dd @@item.flagged_by.join(', ')
+      end
+
+      if @@item.approved and not @@item.approved.empty?
+        _dt 'Approved By'
+        _dd @@item.approved.join(', ')
+      end
+
+      if @@item.roster or @@item.prior_reports or @@item.stats
+        _dt 'Links'
+
+        if @@item.roster
+          _dd { _a 'Roster', href: @@item.roster }
+        end
+
+        if @@item.prior_reports
+          _dd { _a 'Prior Reports', href: @@item.prior_reports }
+        end
+
+        if @@item.stats
+          _dd { _a 'Statistics', href: @@item.stats }
+        end
+      end
+    end
+  end
+end

Mime
View raw message