summaryrefslogtreecommitdiffstats
path: root/smarty/templates/rpmphp
diff options
context:
space:
mode:
authorJohan "Papa" Cwiklinski <trasher@odysseus.(none)>2010-05-29 21:50:37 +0200
committerJohan "Papa" Cwiklinski <trasher@odysseus.(none)>2010-05-29 21:50:37 +0200
commitc14322fae3658cf448dc30a858666badfb1ce5b2 (patch)
tree53594a07d79644047a132a41af55f1e7ab21e8c6 /smarty/templates/rpmphp
parent984fed1620d14acf0009122f578a59cdfba5b287 (diff)
Show errors from template ; refs #47
Diffstat (limited to 'smarty/templates/rpmphp')
-rw-r--r--smarty/templates/rpmphp/zoom.tpl9
1 files changed, 9 insertions, 0 deletions
diff --git a/smarty/templates/rpmphp/zoom.tpl b/smarty/templates/rpmphp/zoom.tpl
index 898ddce..6d13dda 100644
--- a/smarty/templates/rpmphp/zoom.tpl
+++ b/smarty/templates/rpmphp/zoom.tpl
@@ -1,3 +1,12 @@
+{if $error}
+ {if $error eq 'missing_name'}
+ <h1>Missing package name</h1>
+ <form action="?" method="get">
+ <p>You have not specified any package name.</p>
+ <p><label for="rpm">Please enter one package name: </label><input type="text" name="rpm" id="rpm"/> <input type="submit"/></p>
+ </form>
+ {/if}
+{/if}
{if $pkgdb}
<p id="pkgdb-link"><a href="?rpm={$name}">Hide pkgdb informations</a></p>
{else}