[ansel] [patch] Add a refresh icon to the gallery view

Brian Keifer brian at valinor.net
Fri Oct 17 14:44:03 PDT 2003


This one's pretty simple.  I was gearing up to make some changes to the gallery
view, and figured a refresh button would be -very- handy.  Lo and behold, it
was! =)

-Brian

--
I live in the United States of America, where we are gradually coming to
understand that nothing we do is ever our fault, especially if it is really
stupid.
--Dave Barry, "The Tide is high and other household problems"
-------------- next part --------------
Index: templates/view/gallery.inc
===================================================================
RCS file: /repository/ansel/templates/view/gallery.inc,v
retrieving revision 1.1
diff -u -r1.1 gallery.inc
--- templates/view/gallery.inc	16 Oct 2003 15:26:55 -0000	1.1
+++ templates/view/gallery.inc	16 Oct 2003 16:40:25 -0000
@@ -1,11 +1,17 @@
 <?php
 $addurl = Util::addParameter('image.php', 'gallery', $gallery_id);
 $galleryurl = Util::addParameter('gallery.php', 'gallery', $gallery_id);
+$viewurl = Util::addParameter('view.php', 'gallery', $gallery_id);
 ?>
 
 <table border="0" cellpadding="2" cellspacing="0" width="100%">
 <tr>
-  <td class="header"><b><?php echo $title ?></b></td>
+  <td class="header">
+    <b>
+      <?php echo $title ?>
+      <?php echo Horde::link(Util::addParameter($viewurl, 'actionID', 'view'), _("Refresh List")) . Horde::img('refresh.gif', _("Refresh List"), 'hspace="2"') ?>
+    </b>
+  </td>
   <td align="right" class="header"><span class="smallheader">
   <?php if (!$print_view): ?>
     <?php if ($gallery->hasPermission(Auth::getAuth(), _PERMS_EDIT)): ?>


More information about the ansel mailing list