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/26 21:18:45 UTC
[whimsy.git] [1/1] Commit 04de0c9: rough in UI
Commit 04de0c90d42810be36ae5e8c189a62dbb185c218:
rough in UI
Branch: refs/heads/master
Author: Sam Ruby <ru...@intertwingly.net>
Committer: Sam Ruby <ru...@intertwingly.net>
Pusher: rubys <ru...@apache.org>
------------------------------------------------------------
www/roster/views/committer.js.rb | +++++++++++++ --
------------------------------------------------------------
15 changes: 13 additions, 2 deletions.
------------------------------------------------------------
diff --git a/www/roster/views/committer.js.rb b/www/roster/views/committer.js.rb
index e62364e..8815c94 100644
--- a/www/roster/views/committer.js.rb
+++ b/www/roster/views/committer.js.rb
@@ -149,10 +149,21 @@ def render
if @committer.member
if @committer.member.status
- _tr data_edit: ('memstat' if true) do
+ _tr data_edit: ('memstat' if @@auth.secretary) do
_td 'Member status'
if @committer.member.info
- _td @committer.member.status
+ _td do
+ _span @committer.member.status
+ if @edit_memstat
+ if @committer.member.status.include? 'Active'
+ _button.btn.btn_primary 'move to emeritus',
+ disabled: true
+ elsif @committer.member.status.include? 'Emeritus'
+ _button.btn.btn_primary 'move to active',
+ disabled: true
+ end
+ end
+ end
else
_td.not_found 'Not in members.txt'
end