[Debtags-commits] [svn] r1438 - central-database/branches/alioth/webfrontend

Enrico Zini enrico at costa.debian.org
Sun Oct 30 11:29:13 UTC 2005


Author: enrico
Date: Sun Oct 30 11:29:13 2005
New Revision: 1438

Modified:
   central-database/branches/alioth/webfrontend/browsetemplate.html
   central-database/branches/alioth/webfrontend/index.cgi
Log:
Navigation starts to work

Modified: central-database/branches/alioth/webfrontend/browsetemplate.html
==============================================================================
--- central-database/branches/alioth/webfrontend/browsetemplate.html	(original)
+++ central-database/branches/alioth/webfrontend/browsetemplate.html	Sun Oct 30 11:29:13 2005
@@ -16,6 +16,7 @@
   <TMPL_VAR NAME="LOG">
 
   <form name="search" method="get">
+  <input type="text" name="words" value='<tmpl_var name="CURWORDS">'>
   <input type="hidden" name="tags" value='<tmpl_var name="CURTAGS">'>
   <input type="submit">
 

Modified: central-database/branches/alioth/webfrontend/index.cgi
==============================================================================
--- central-database/branches/alioth/webfrontend/index.cgi	(original)
+++ central-database/branches/alioth/webfrontend/index.cgi	Sun Oct 30 11:29:13 2005
@@ -121,7 +121,7 @@
 		my $selwords = param($par);
 		if ($selwords && $selwords =~ m/([a-z0-9\-:.,]+)/)
 		{
-			@sel_words = split(/,/, $1);
+			@sel_words = split(/\s+/, $1);
 		}
 	}
 }
@@ -316,6 +316,7 @@
 $template->param(NUMPACKAGES => scalar(@pkgs));
 $template->param(PACKAGES => \@ht_pkgs);
 $template->param(CURTAGS => join(',', at sel_tags));
+$template->param(CURWORDS => join(' ', at sel_words));
 $log =~ s/\n/<br>/g;
 $template->param(LOG => $log);
 



More information about the Debtags-commits mailing list