[Da-tools-commits] ./debian/userdir-ldap-cgi r102: Hide hosts on website whose status starts with unlisted.

Peter Palfrader peter at palfrader.org
Tue Jul 15 19:46:23 UTC 2008


------------------------------------------------------------
revno: 102
committer: Peter Palfrader <peter at palfrader.org>
branch nick: userdir-ldap-cgi
timestamp: Tue 2008-07-15 21:46:23 +0200
message:
  Hide hosts on website whose status starts with unlisted.
modified:
  debian/changelog
  machines.cgi
-------------- next part --------------
=== modified file 'debian/changelog'
--- a/debian/changelog	2008-07-15 14:34:18 +0000
+++ b/debian/changelog	2008-07-15 19:46:23 +0000
@@ -1,3 +1,9 @@
+userdir-ldap-cgi (0.3.14) unstable; urgency=low
+
+  * Hide hosts on website whose status starts with unlisted.
+
+ -- Peter Palfrader <weasel at debian.org>  Tue, 15 Jul 2008 21:46:07 +0200
+
 userdir-ldap-cgi (0.3.13) unstable; urgency=low
 
   * Remove distribution from summary, add purpose and sponsor

=== modified file 'machines.cgi'
--- a/machines.cgi	2008-07-15 14:34:05 +0000
+++ b/machines.cgi	2008-07-15 19:46:23 +0000
@@ -166,7 +166,7 @@
     $selected = " selected ";
   }
 
-  $hostlist .= "<option value=\"$thishost\"$selected>$thishost\n";
+  $hostlist .= "<option value=\"$thishost\"$selected>$thishost\n" unless ($data->{status}->[0] =~ /^unlisted/);
 
   # collect summary info
   foreach $key (keys(%summaryattrs)) {
@@ -218,6 +218,7 @@
      @sorted = sort {($summary{$b}->{$sortby} cmp $summary{$a}->{$sortby}) || ($summary{$a}->{'host'} cmp $summary{$b}->{'host'})} keys(%summary)
   }
   foreach $host (@sorted) {
+    next if $summary{$host}{status} =~ /^unlisted/;
     $hostdetails .= "<tr>";
     foreach $key (@summaryorder) {
       $hostdetails .= "<td>$summary{$host}{$key}&nbsp;</td>";



More information about the Da-tools-commits mailing list