changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > werc / changeset: Add missing wman search template! Doh.

changeset 582: 7796a4845c7f
parent 581: 55d60f7ecc11
child 583: 5de7c9ba8a54
author: uriel@soma
date: Mon, 14 Sep 2009 01:37:50 +0000
files: apps/wman/search.tpl
description: Add missing wman search template! Doh.
     1.1--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2+++ b/apps/wman/search.tpl	Mon Sep 14 01:37:50 2009 +0000
     1.3@@ -0,0 +1,20 @@
     1.4+<form action="" method="POST">
     1.5+<fieldset>
     1.6+    <input type="text" name="wman_search" value="%($"s%)" />
     1.7+    <input type="submit" name="go" value="Feel Lucky" />
     1.8+    <input type="submit" value="Search" />
     1.9+
    1.10+% if(! ~ $"post_arg_wman_search '') {
    1.11+%   if(~ $"wman_search_results '') {
    1.12+        No matches found for <i>'%($post_arg_wman_search%)'</i>.
    1.13+%   }
    1.14+%   if not {
    1.15+        <ul>
    1.16+%       echo $wman_search_results|awk -F/ '$(NF-1) ~ "^[0-9]+$" {printf "<li><a href=\"'$wman_base_uri'%s/%s\" />%s(%s)</a></li>", $(NF-1),$NF, $NF, $(NF-1)}'
    1.17+        </ul>
    1.18+%   }
    1.19+% }
    1.20+
    1.21+</fieldset>
    1.22+</form>
    1.23+