You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by Sam Ruby <ru...@apache.org> on 2016/03/15 23:01:03 UTC
[whimsy.git] [1/1] Commit 1eab2b0: oops, forgot a file
Commit 1eab2b09f4bbf0ed6c57d7db1971bd0c5cdba68f:
oops, forgot a file
Branch: refs/heads/master
Author: Sam Ruby <ru...@intertwingly.net>
Committer: Sam Ruby <ru...@intertwingly.net>
Pusher: rubys <ru...@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