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 fb510be2 Don't show link to self
fb510be2 is described below

commit fb510be297dcaea3cc00c9150e1bdaabec1e7cf2
Author: Sebb <[email protected]>
AuthorDate: Thu Apr 13 10:54:54 2023 +0100

    Don't show link to self
---
 www/members/watch.cgi | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/www/members/watch.cgi b/www/members/watch.cgi
index 606dea31..46026100 100755
--- a/www/members/watch.cgi
+++ b/www/members/watch.cgi
@@ -56,8 +56,10 @@ _html do
                   end
                 end
 
-                _li do
-                  _a 'Potential Member Watch List', href: 'members/watch'
+                if request =~ %r{/watch/\w} # only show main link for a 
sub-page
+                  _li do
+                    _a 'Potential Member Watch List', href: 'members/watch'
+                  end
                 end
 
                 unless request =~ /nominees/

Reply via email to