You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2019/07/26 13:03:30 UTC

[whimsy] branch master updated: Display inactive status

This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new cf0e7b0  Display inactive status
cf0e7b0 is described below

commit cf0e7b0ed0d3325b3be9ba0ecc72e0ceb2a917a2
Author: Sebb <se...@apache.org>
AuthorDate: Fri Jul 26 14:03:19 2019 +0100

    Display inactive status
---
 www/roster/models/committer.rb     | 1 +
 www/roster/views/person/main.js.rb | 7 +++++++
 2 files changed, 8 insertions(+)

diff --git a/www/roster/models/committer.rb b/www/roster/models/committer.rb
index 618bdbb..be2c3fe 100644
--- a/www/roster/models/committer.rb
+++ b/www/roster/models/committer.rb
@@ -57,6 +57,7 @@ class Committer
     end
 
     response[:host] = person.attrs['host'] || ['(none)']
+    response[:inactive] = person.inactive? 
 
     if person.attrs['asf-sascore']
       response[:sascore] = person.attrs['asf-sascore'].first # should only be one, but is returned as array
diff --git a/www/roster/views/person/main.js.rb b/www/roster/views/person/main.js.rb
index 5304a88..1b5ffdb 100644
--- a/www/roster/views/person/main.js.rb
+++ b/www/roster/views/person/main.js.rb
@@ -240,6 +240,13 @@ class Person < Vue
       end
     end
 
+    if @committer.inactive
+      _div.row do
+        _div.name 'Inactive (cannot login)'
+        _div.value @committer.inactive
+      end
+    end
+
     # SSH keys
     if @committer.ssh || @auth
       @committer.ssh ||= []