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

2021-07-19 Thread clr
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 61504b9  Update ldap-names.cgi: repeat header after 30 lines
61504b9 is described below

commit 61504b93d494fb5a56c5afebdc0074d6948727d6
Author: Craig L Russell 
AuthorDate: Mon Jul 19 16:02:04 2021 -0700

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

diff --git a/www/secretary/ldap-names.cgi b/www/secretary/ldap-names.cgi
index 732395d..67a7118 100755
--- a/www/secretary/ldap-names.cgi
+++ b/www/secretary/ldap-names.cgi
@@ -149,7 +149,7 @@ _html do
 matches += 1
 next
   end
-  if 0 == (mismatches += 1) % 30 #repeat header each 30 lines
+  if 0 == (mismatches += 1) % 25 #repeat header every 25 lines
 _tr bgcolor: 'lightblue' do
   _td 'uid'
   _td "ICLA file"
@@ -160,7 +160,7 @@ _html do
   _td 'Modify to?'
   _td 'sn'
   _td 'Modify to?'
-  _td 'Unused names'
+  _td 'Unused'
 end
   end
 
@@ -241,7 +241,7 @@ _html do
   _td 'Modify to?'
   _td 'sn'
   _td 'Modify to?'
-  _td 'Unused names'
+  _td 'Unused'
 end
   end
 


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

2021-07-19 Thread clr
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 
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