You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by cl...@apache.org on 2021/07/12 23:17:25 UTC

[whimsy] branch master updated: LDAP-namecheck print header each 30 rows

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

clr 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 32b08b9  LDAP-namecheck print header each 30 rows
     new 71fe14c  Merge branch 'master' of github.com:apache/whimsy
32b08b9 is described below

commit 32b08b9282852a66ff8aaec4cbfc786bb8cd3501
Author: Craig L Russell <ap...@gmail.com>
AuthorDate: Mon Jul 12 16:16:12 2021 -0700

    LDAP-namecheck print header each 30 rows
---
 www/members/ldap-namecheck.cgi | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/www/members/ldap-namecheck.cgi b/www/members/ldap-namecheck.cgi
index ebff683..34fc818 100755
--- a/www/members/ldap-namecheck.cgi
+++ b/www/members/ldap-namecheck.cgi
@@ -46,6 +46,7 @@ _html do
   # prefetch LDAP data
   people = ASF::Person.preload(%w(uid cn sn givenName loginShell))
   matches = 0
+  mismatches = 0
   badGiven = 0
   badSN = 0
 
@@ -96,6 +97,18 @@ _html do
         next
       end
 
+      if mismatches % 30 == 0 # repeat header every 30 lines
+        _tr do
+          _td 'uid'
+          _td "iclas.txt public name"
+          _td 'cn'
+          _td 'givenName'
+          _td 'Modify to?'
+          _td 'sn'
+          _td 'Modify to?'
+          _td 'Unused names'
+        end
+
       _tr do
         _td do
           _a p.uid, href: '/roster/committer/' + p.uid
@@ -165,4 +178,4 @@ _html do
     _ "Total: #{people.size} Matches: #{matches} GivenBad: #{badGiven} SNBad: #{badSN}"
   end
 
-end
\ No newline at end of file
+end