whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] branch master updated: Display inactive status
Date Fri, 26 Jul 2019 13:03:30 GMT
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 <sebb@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 ||= []


Mime
View raw message