Reuse diff graphic.
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 17 Jun 2009 06:39:52 +0000 (00:39 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 17 Jun 2009 06:48:44 +0000 (00:48 -0600)
chora/browsefile.php
chora/templates/log/rev.inc

index dd35aa1..ac7ee6f 100644 (file)
@@ -56,6 +56,7 @@ require CHORA_TEMPLATES . '/headerbar.inc';
 require CHORA_TEMPLATES . '/log/header.inc';
 
 $i = 0;
+$diff_img = Horde::img('diff.png');
 reset($logs);
 while (list(,$lg) = each($logs)) {
     $rev = $lg->queryRevision();
index 7019491..0271e36 100644 (file)
@@ -1,9 +1,9 @@
 <tr id="rev<?php echo $rev ?>">
  <td>
   <?php if ($diffUrl): ?>
-  <a href="<?php echo $diffUrl ?>" class="pdiff" title="<?php echo _("Show changes to the previous revision") ?>"><?php echo Horde::img('diff.png') ?></a>
+  <a href="<?php echo $diffUrl ?>" class="pdiff" title="<?php echo _("Show changes to the previous revision") ?>"><?php echo $diff_img ?></a>
   <?php endif ?>
-  <a href="<?php echo Chora::url('diff', $where, array('r1' => 0, 'r2' => $rev)) ?>" class="sdiff" title="<?php echo _("Show changes to the selected revision") ?>" onclick="Chora_RevLog.sdiff(this);"><?php echo Horde::img('diff.png') ?></a>
+  <a href="<?php echo Chora::url('diff', $where, array('r1' => 0, 'r2' => $rev)) ?>" class="sdiff" title="<?php echo _("Show changes to the selected revision") ?>" onclick="Chora_RevLog.sdiff(this);"><?php echo $diff_img ?></a>
  </td>
  <td><a href="<?php echo $textUrl ?>" title="<?php echo htmlspecialchars($rev) ?>"><?php echo htmlspecialchars($VC->abbrev($rev)) ?></a>
 <?php foreach (array_diff($branch_info, array($onb)) as $val): ?>