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: allow for resticted mbox type
Date Thu, 19 Mar 2020 14:21:16 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 2463ef5  allow for resticted mbox type
2463ef5 is described below

commit 2463ef534b5700e8d9846e08ebb7a9d26dae9d98
Author: Sebb <sebb@apache.org>
AuthorDate: Wed Mar 18 08:53:33 2020 +0000

    allow for resticted mbox type
---
 lib/whimsy/asf/mlist.rb   | 1 +
 www/members/archivers.cgi | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/lib/whimsy/asf/mlist.rb b/lib/whimsy/asf/mlist.rb
index 78635a6..1cdb1b2 100644
--- a/lib/whimsy/asf/mlist.rb
+++ b/lib/whimsy/asf/mlist.rb
@@ -244,6 +244,7 @@ module ASF
       case email
         when ARCH_MBOX_PUB then return [:MBOX, 'public']
         when ARCH_MBOX_PRV then return [:MBOX, 'private']
+        when ARCH_MBOX_RST then return [:MBOX, 'restricted']
         when ARCH_PONY_PUB then return [:PONY, 'public']
         when ARCH_PONY_PRV then return [:PONY, 'private']
         when ARCH_EXT_MAIL_ARCHIVE then return [:MAIL_ARCH, 'public']
diff --git a/www/members/archivers.cgi b/www/members/archivers.cgi
index e8c8f8f..6943e80 100755
--- a/www/members/archivers.cgi
+++ b/www/members/archivers.cgi
@@ -116,6 +116,9 @@ _html do
         end 
         
         mbox = arcs.select{|e| e[1] == :MBOX}.map{|e| e[2]}.uniq.join('')
+
+        next if mbox == 'restricted' # Don't show these
+
         if ! mbox.empty?
           options[:mbox] = {class: 'danger'} if pubprv && mbox != pubprv  
         else


Mime
View raw message