about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorLars Hjemli2009-10-06 20:33:04 +0200
committerLars Hjemli2009-10-06 20:33:04 +0200
commit322a4bc30917741cae30647165670b94f517ebf9 (patch)
tree2f895e83921027cd70941aabd86fd9ea2521b38d
parentui-tag: add snapshot links (diff)
downloadcgit-322a4bc30917741cae30647165670b94f517ebf9.tar.gz
cgit-322a4bc30917741cae30647165670b94f517ebf9.zip
ui-tag: make output more similar to commit view
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
-rw-r--r--ui-tag.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ui-tag.c b/ui-tag.c index cd353c2..39e4cb8 100644 --- a/ui-tag.c +++ b/ui-tag.c
@@ -64,16 +64,16 @@ void cgit_print_tag(char *revname)
64 return; 64 return;
65 } 65 }
66 html("<table class='commit-info'>\n"); 66 html("<table class='commit-info'>\n");
67 htmlf("<tr><td>Tag name</td><td>"); 67 htmlf("<tr><td>tag name</td><td>");
68 html_txt(revname); 68 html_txt(revname);
69 htmlf(" (%s)</td></tr>\n", sha1_to_hex(sha1)); 69 htmlf(" (%s)</td></tr>\n", sha1_to_hex(sha1));
70 if (info->tagger_date > 0) { 70 if (info->tagger_date > 0) {
71 html("<tr><td>Tag date</td><td>"); 71 html("<tr><td>tag date</td><td>");
72 cgit_print_date(info->tagger_date, FMT_LONGDATE, ctx.cfg.local_time); 72 cgit_print_date(info->tagger_date, FMT_LONGDATE, ctx.cfg.local_time);
73 html("</td></tr>\n"); 73 html("</td></tr>\n");
74 } 74 }
75 if (info->tagger) { 75 if (info->tagger) {
76 html("<tr><td>Tagged by</td><td>"); 76 html("<tr><td>tagged by</td><td>");
77 html_txt(info->tagger); 77 html_txt(info->tagger);
78 if (info->tagger_email && !ctx.cfg.noplainemail) { 78 if (info->tagger_email && !ctx.cfg.noplainemail) {
79 html(" "); 79 html(" ");
@@ -81,7 +81,7 @@ void cgit_print_tag(char *revname)
81 } 81 }
82 html("</td></tr>\n"); 82 html("</td></tr>\n");
83 } 83 }
84 html("<tr><td>Tagged object</td><td>"); 84 html("<tr><td>tagged object</td><td class='sha1'>");
85 cgit_object_link(tag->tagged); 85 cgit_object_link(tag->tagged);
86 html("</td></tr>\n"); 86 html("</td></tr>\n");
87 if (ctx.repo->snapshots) 87 if (ctx.repo->snapshots)
@@ -90,10 +90,10 @@ void cgit_print_tag(char *revname)
90 print_tag_content(info->msg); 90 print_tag_content(info->msg);
91 } else { 91 } else {
92 html("<table class='commit-info'>\n"); 92 html("<table class='commit-info'>\n");
93 htmlf("<tr><td>Tag name</td><td>"); 93 htmlf("<tr><td>tag name</td><td>");
94 html_txt(revname); 94 html_txt(revname);
95 html("</td></tr>\n"); 95 html("</td></tr>\n");
96 html("<tr><td>Tagged object</td><td>"); 96 html("<tr><td>Tagged object</td><td class='sha1'>");
97 cgit_object_link(obj); 97 cgit_object_link(obj);
98 html("</td></tr>\n"); 98 html("</td></tr>\n");
99 if (ctx.repo->snapshots) 99 if (ctx.repo->snapshots)