whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] branch master updated: map each initials to first name
Date Mon, 13 Apr 2020 14:13:40 GMT
This is an automated email from the ASF dual-hosted git repository.

rubys 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 8eb14ec  map each initials to first name
8eb14ec is described below

commit 8eb14ecdab28f636d94be0b9bc4347de6e518618
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Mon Apr 13 10:13:01 2020 -0400

    map each initials to first name
---
 www/board/agenda/views/pages/flagged.js.rb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/www/board/agenda/views/pages/flagged.js.rb b/www/board/agenda/views/pages/flagged.js.rb
index cb1f4bd..8efa8bc 100644
--- a/www/board/agenda/views/pages/flagged.js.rb
+++ b/www/board/agenda/views/pages/flagged.js.rb
@@ -39,7 +39,10 @@ class Flagged < Vue
 
           _span.owner " [#{item.owner} / #{item.shepherd}]"
 
-          flagged_by = Server.directors[item.flagged_by] || item.flagged_by
+          flagged_by = item.flagged_by.to_s.split(/,\s*/).map {|initials|
+            Server.directors[initials] || initials
+          }.join(', ')
+
           _span.owner " flagged by: #{flagged_by}" if flagged_by
         end
 


Mime
View raw message