From 4de274c90b2e38e0b58844a74a3578a96b96490c Mon Sep 17 00:00:00 2001 From: Imran Hussain <imranh@sucs.org> Date: Sat, 26 Apr 2014 22:55:44 +0000 Subject: [PATCH] Junk page now handels no junk properly --- templates/junk.tpl | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/templates/junk.tpl b/templates/junk.tpl index 963445f..99e666b 100644 --- a/templates/junk.tpl +++ b/templates/junk.tpl @@ -1,3 +1,22 @@ +{if $mode == 'nojunk'} + {include file="../static/fragments/Junk.txt"} + <div class="box"> + <div class="boxhead"> + <h3>No Junk</h3> + </div> + <div class="boxcontent"> + <h4>There is currently no junk</h4> + <h4></h4> + </div> + <div class="hollowfoot"><div><div></div></div></div> + </div> + {if $admin} + <div class="edit"> + <a href="{$componentpath}/Add">Add</a> + <div class="clear"></div> + </div> + {/if} +{/if} {if $mode == 'list'} {include file="../static/fragments/Junk.txt"} {foreach name=junk from=$junk key=status item=statusitems} -- GitLab