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/19 21:40:17 UTC

[whimsy] branch master updated: Update ldap-names.cgi: repeat header after 30 lines

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 5308746  Update ldap-names.cgi: repeat header after 30 lines
5308746 is described below

commit 53087461ba000f0077b1bbab8c99de7369929fdd
Author: Craig L Russell <ap...@gmail.com>
AuthorDate: Mon Jul 19 14:39:57 2021 -0700

    Update ldap-names.cgi: repeat header after 30 lines
---
 www/secretary/ldap-names.cgi | 20 +++++++++++++++++++-
 1 file changed, 19 insertions(+), 1 deletion(-)

diff --git a/www/secretary/ldap-names.cgi b/www/secretary/ldap-names.cgi
index d1b4825..732395d 100755
--- a/www/secretary/ldap-names.cgi
+++ b/www/secretary/ldap-names.cgi
@@ -99,6 +99,7 @@ _html do
   matches = 0
   badGiven = 0
   badSN = 0
+  mismatches = 0
 
   # prefetch ICLA data
   ASF::ICLA.preload
@@ -148,6 +149,21 @@ _html do
         matches += 1
         next
       end
+      if 0 == (mismatches += 1) % 30 #repeat header each 30 lines
+        _tr bgcolor: 'lightblue' do
+          _td 'uid'
+          _td "ICLA file"
+          _td "iclas.txt real name"
+          _td "iclas.txt public name"
+          _td 'cn'
+          _td 'givenName'
+          _td 'Modify to?'
+          _td 'sn'
+          _td 'Modify to?'
+          _td 'Unused names'
+        end
+      end
+
       next if givenOK and skipSN #and unused.size == 0
 
       claRef = icla.claRef if icla
@@ -217,6 +233,8 @@ _html do
     end
     _tr bgcolor: 'lightblue' do
       _td 'uid'
+      _td "ICLA file"
+      _td "iclas.txt real name"
       _td "iclas.txt public name"
       _td 'cn'
       _td 'givenName'
@@ -291,4 +309,4 @@ _html do
     enable_submit()
   end
 
-end
\ No newline at end of file
+end