Proper format for these widget links.
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 3 Feb 2009 06:53:02 +0000 (23:53 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 3 Feb 2009 06:55:59 +0000 (23:55 -0700)
chora/co.php

index ab30a13..dc32586 100644 (file)
@@ -68,9 +68,12 @@ if (!$plain) {
                      basename($fullname),
                      $r,
                      Chora::readableTime($log->queryDate(), true));
-    $extraLink = sprintf('<a href="%s">%s</a> | <a href="%s">%s</a>',
-                         Chora::url('annotate', $where, array('rev' => $r)), _("Annotate"),
-                         Chora::url('co', $where, array('r' => $r, 'p' => 1)), _("Download"));
+
+    $views = array(
+        Horde::widget(Chora::url('annotate', $where, array('rev' => $r)), _("Annotate"), 'widget', '', '', _("_Annotate")),
+        Horde::widget(Chora::url('co', $where, array('r' => $r, 'p' => 1)), _("Download"), 'widget', '', '', _("_Download"))
+    );
+    $extraLink = _("View:") . ' ' . implode(' | ', $views);
 
     $tags = Chora::getTags($log, $where);
     $branch_info = $log->queryBranch();