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

2021-07-12 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 4bc01f3  LDAP-namecheck print header each 30 rows
4bc01f3 is described below

commit 4bc01f34154e06cbd0d68b6f7cf76e80c1389b12
Author: Craig L Russell 
AuthorDate: Mon Jul 12 17:08:50 2021 -0700

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

diff --git a/www/members/ldap-namecheck.cgi b/www/members/ldap-namecheck.cgi
index 0ecb830..4b9d8b0 100755
--- a/www/members/ldap-namecheck.cgi
+++ b/www/members/ldap-namecheck.cgi
@@ -97,7 +97,7 @@ _html do
 next
   end
 
-  if 0 == ++mismatches % 30 # repeat header every 30 lines
+  if 0 == (mismatches += 1) % 30 # repeat header every 30 lines
 _tr bgcolor: 'lightblue' do
   _td 'uid'
   _td "iclas.txt public name"


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

2021-07-12 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 691d31d  LDAP-namecheck print header each 30 rows
691d31d is described below

commit 691d31dba517c94e02b880f5f0ee8eb98b143a62
Author: Craig L Russell 
AuthorDate: Mon Jul 12 16:59:33 2021 -0700

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

diff --git a/www/members/ldap-namecheck.cgi b/www/members/ldap-namecheck.cgi
index 2b21be6..0ecb830 100755
--- a/www/members/ldap-namecheck.cgi
+++ b/www/members/ldap-namecheck.cgi
@@ -99,7 +99,7 @@ _html do
 
   if 0 == ++mismatches % 30 # repeat header every 30 lines
 _tr bgcolor: 'lightblue' do
-  _td 'uid' + str(mismatches)
+  _td 'uid'
   _td "iclas.txt public name"
   _td 'cn'
   _td 'givenName'


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

2021-07-12 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 3e2d408  LDAP-namecheck print header each 30 rows
3e2d408 is described below

commit 3e2d40870bfb852d62c5d3f116c30fcc72c6378a
Author: Craig L Russell 
AuthorDate: Mon Jul 12 16:47:38 2021 -0700

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

diff --git a/www/members/ldap-namecheck.cgi b/www/members/ldap-namecheck.cgi
index 9442ed5..2b21be6 100755
--- a/www/members/ldap-namecheck.cgi
+++ b/www/members/ldap-namecheck.cgi
@@ -99,7 +99,7 @@ _html do
 
   if 0 == ++mismatches % 30 # repeat header every 30 lines
 _tr bgcolor: 'lightblue' do
-  _td 'uid' + mismatches
+  _td 'uid' + str(mismatches)
   _td "iclas.txt public name"
   _td 'cn'
   _td 'givenName'


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

2021-07-12 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 71e3c04  LDAP-namecheck print header each 30 rows
71e3c04 is described below

commit 71e3c04745264cecd6e6b161dd4b9217a3b80031
Author: Craig L Russell 
AuthorDate: Mon Jul 12 16:39:11 2021 -0700

LDAP-namecheck print header each 30 rows
---
 www/members/ldap-namecheck.cgi | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/www/members/ldap-namecheck.cgi b/www/members/ldap-namecheck.cgi
index 5b60a8e..9442ed5 100755
--- a/www/members/ldap-namecheck.cgi
+++ b/www/members/ldap-namecheck.cgi
@@ -97,9 +97,9 @@ _html do
 next
   end
 
-  if 0 == ((++mismatches) % 30) # repeat header every 30 lines
-_tr do
-  _td 'uid'
+  if 0 == ++mismatches % 30 # repeat header every 30 lines
+_tr bgcolor: 'lightblue' do
+  _td 'uid' + mismatches
   _td "iclas.txt public name"
   _td 'cn'
   _td 'givenName'


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

2021-07-12 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 cbf6fad  LDAP-namecheck print header each 30 rows
cbf6fad is described below

commit cbf6fadae3e85eefc09abe96593e1f6b3b8ff243
Author: Craig L Russell 
AuthorDate: Mon Jul 12 16:32:10 2021 -0700

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

diff --git a/www/members/ldap-namecheck.cgi b/www/members/ldap-namecheck.cgi
index d6247ad..5b60a8e 100755
--- a/www/members/ldap-namecheck.cgi
+++ b/www/members/ldap-namecheck.cgi
@@ -97,7 +97,7 @@ _html do
 next
   end
 
-  if ++mismatches % 30 == 0 # repeat header every 30 lines
+  if 0 == ((++mismatches) % 30) # repeat header every 30 lines
 _tr do
   _td 'uid'
   _td "iclas.txt public name"


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

2021-07-12 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 aa3163a  LDAP-namecheck print header each 30 rows
aa3163a is described below

commit aa3163a5e8607a7bb5b82e76ff7d8d689febe72d
Author: Craig L Russell 
AuthorDate: Mon Jul 12 16:28:26 2021 -0700

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

diff --git a/www/members/ldap-namecheck.cgi b/www/members/ldap-namecheck.cgi
index 34fc818..d6247ad 100755
--- a/www/members/ldap-namecheck.cgi
+++ b/www/members/ldap-namecheck.cgi
@@ -97,7 +97,7 @@ _html do
 next
   end
 
-  if mismatches % 30 == 0 # repeat header every 30 lines
+  if ++mismatches % 30 == 0 # repeat header every 30 lines
 _tr do
   _td 'uid'
   _td "iclas.txt public name"
@@ -108,6 +108,7 @@ _html do
   _td 'Modify to?'
   _td 'Unused names'
 end
+  end
 
   _tr do
 _td do


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

2021-07-12 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 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 
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