|
diff --git a/ui-tag.c b/ui-tag.c index 8c263ab..c2d72af 100644 --- a/ ui-tag.c+++ b/ ui-tag.c |
|
@@ -54,33 +54,33 @@ void cgit_print_tag(char *revname) |
54 | if (!tag || parse_tag(tag) || !(info = cgit_parse_tag(tag))) { |
54 | if (!tag || parse_tag(tag) || !(info = cgit_parse_tag(tag))) { |
55 | cgit_print_error(fmt("Bad tag object: %s", revname)); |
55 | cgit_print_error(fmt("Bad tag object: %s", revname)); |
56 | return; |
56 | return; |
57 | } |
57 | } |
58 | html("<table class='commit-info'>\n"); |
58 | html("<table class='commit-info'>\n"); |
59 | htmlf("<tr><td>Tag name</td><td>"); |
59 | htmlf("<tr><td>Tag name</td><td>"); |
60 | html_txt(revname); |
60 | html_txt(revname); |
61 | htmlf(" (%s)</td></tr>\n", sha1_to_hex(sha1)); |
61 | htmlf(" (%s)</td></tr>\n", sha1_to_hex(sha1)); |
62 | if (info->tagger_date > 0) { |
62 | if (info->tagger_date > 0) { |
63 | html("<tr><td>Tag date</td><td>"); |
63 | html("<tr><td>Tag date</td><td>"); |
64 | cgit_print_date(info->tagger_date, FMT_LONGDATE, ctx.cfg.local_time); |
64 | cgit_print_date(info->tagger_date, FMT_LONGDATE, ctx.cfg.local_time); |
65 | html("</td></tr>\n"); |
65 | html("</td></tr>\n"); |
66 | } |
66 | } |
67 | if (info->tagger) { |
67 | if (info->tagger) { |
68 | html("<tr><td>Tagged by</td><td>"); |
68 | html("<tr><td>Tagged by</td><td>"); |
69 | html_txt(info->tagger); |
69 | html_txt(info->tagger); |
70 | if (info->tagger_email) { |
70 | if (info->tagger_email && !ctx.cfg.noplainemail) { |
71 | html(" "); |
71 | html(" "); |
72 | html_txt(info->tagger_email); |
72 | html_txt(info->tagger_email); |
73 | } |
73 | } |
74 | html("</td></tr>\n"); |
74 | html("</td></tr>\n"); |
75 | } |
75 | } |
76 | html("<tr><td>Tagged object</td><td>"); |
76 | html("<tr><td>Tagged object</td><td>"); |
77 | cgit_object_link(tag->tagged); |
77 | cgit_object_link(tag->tagged); |
78 | html("</td></tr>\n"); |
78 | html("</td></tr>\n"); |
79 | html("</table>\n"); |
79 | html("</table>\n"); |
80 | print_tag_content(info->msg); |
80 | print_tag_content(info->msg); |
81 | } else { |
81 | } else { |
82 | html("<table class='commit-info'>\n"); |
82 | html("<table class='commit-info'>\n"); |
83 | htmlf("<tr><td>Tag name</td><td>"); |
83 | htmlf("<tr><td>Tag name</td><td>"); |
84 | html_txt(revname); |
84 | html_txt(revname); |
85 | html("</td></tr>\n"); |
85 | html("</td></tr>\n"); |
86 | html("<tr><td>Tagged object</td><td>"); |
86 | html("<tr><td>Tagged object</td><td>"); |
|