From 80e19ad2c2e8fbc3fb254e86c3a547c706d1f341 Mon Sep 17 00:00:00 2001 From: ijackson Date: Wed, 23 Jun 1999 15:35:36 +0000 Subject: [PATCH] Display hiddenness in db listing. --- listdb.pl | 4 +++- template.html | 25 +++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/listdb.pl b/listdb.pl index 0b970b2..7ffd064 100644 --- a/listdb.pl +++ b/listdb.pl @@ -80,7 +80,9 @@ sub foreach_setvars_db { $db_net= display_net($ent->{'network'}, $ent->{'prefix'}); $db_name= html_sani($ent->{'name'}); $db_contact= html_sani($ent->{'contact'}); - $db_email= $ent->{'hiddenemail'} ? "" : html_sani($ent->{'email'}); + $db_hiddenemail= $ent->{'hiddenemail'}; + $db_email= $db_hiddenemail ? "" : html_sani($ent->{'email'}); + $db_confirmed= !!$ent->{'changed'}; } 1; diff --git a/template.html b/template.html index 6fe6e24..830333b 100644 --- a/template.html +++ b/template.html @@ -506,16 +506,41 @@ range; this can also be used to modify it. @@@foreach:db@@@

+ @@@if:db_picked@@@ @@@db_net@@@ network randomly picked as requested @@@endif:@@@ + @@@ifnot:db_picked@@@ + @@@db_net@@@ @@@db_name@@@ @@@db_contact@@@ + +@@@ifnot:db_hiddenemail@@@ + @@@db_email@@@ +@@@ifnot:db_confirmed@@@ +(unconfirmed) @@@endif:@@@ + +@@@endif:@@@ + +@@@if:db_hiddenemail@@@ + +@@@if:db_confirmed@@@ +hidden +@@@endif:@@@ + +@@@ifnot:db_confirmed@@@ +hidden, unconfirmed +@@@endif:@@@ + +@@@endif:@@@ + +@@@endif:@@@ + @@@endforeach:@@@ -- 2.30.2