X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/43291e418ab6c736168effc017f9548bacb84e5e..97b3d252629a8a3b9d356c2532dec7611438e4b9:/ui-tag.c
diff --git a/ui-tag.c b/ui-tag.c
index 6d761f3..0e056e0 100644
--- a/ui-tag.c
+++ b/ui-tag.c
@@ -7,7 +7,8 @@
*/
#include "cgit.h"
-
+#include "html.h"
+#include "ui-shared.h"
static void print_tag_content(char *buf)
{
@@ -52,16 +53,21 @@ void cgit_print_tag(char *revname)
return;
}
html("
\n");
- htmlf("| Tag name | %s (%s) |
\n",
- revname, sha1_to_hex(sha1));
+ htmlf("| Tag name | ");
+ html_txt(revname);
+ htmlf(" (%s) |
\n", sha1_to_hex(sha1));
if (info->tagger_date > 0) {
html("| Tag date | ");
- cgit_print_date(info->tagger_date, FMT_LONGDATE);
+ cgit_print_date(info->tagger_date, FMT_LONGDATE, ctx.cfg.local_time);
html(" |
\n");
}
if (info->tagger) {
html("| Tagged by | ");
html_txt(info->tagger);
+ if (info->tagger_email) {
+ html(" ");
+ html_txt(info->tagger_email);
+ }
html(" |
\n");
}
html("| Tagged object | ");
@@ -69,6 +75,15 @@ void cgit_print_tag(char *revname)
html(" |
\n");
html("
\n");
print_tag_content(info->msg);
- }
+ } else {
+ html("\n");
+ htmlf("| Tag name | ");
+ html_txt(revname);
+ html(" |
\n");
+ html("| Tagged object | ");
+ cgit_object_link(obj);
+ html(" |
\n");
+ html("
\n");
+ }
return;
}