[dev] possible patch for viewevent template
David U.
davidu@everydns.net
Mon, 9 Sep 2002 12:11:30 -0500
This is a cosmetic patch to remove the bottom bar in viewevent when no
edit/delete permissions exist. I'm not sure if others want it.
-davidu
Index: view.inc
===================================================================
RCS file: /repository/kronolith/templates/view/view.inc,v
retrieving revision 1.17
diff -p --unified=3 -r1.17 view.inc
--- view.inc 9 Sep 2002 03:43:53 -0000 1.17
+++ view.inc 9 Sep 2002 17:09:31 -0000
@@ -168,10 +182,12 @@ elseif ($event->hasRecurType(KRONOLITH_R
<?php endif; ?>
<!-- buttons -->
+<?php if (count($mylinks) > 0): ?>
<tr>
<td align="right" colspan="4" class="header"><span class="smallheader">
<?php echo implode(' | ', $mylinks) ?>
</span></td>
</tr>
+<?php endif; ?>
</table>
--
"Never doubt that a small group of thoughtful citizens can change the
world. Indeed, it is the only thing that ever has." --Margaret Mead