ui-tag: make output more similar to commit view
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Этот коммит содержится в:
родитель
8cdccac758
Коммит
322a4bc309
12
ui-tag.c
12
ui-tag.c
@ -64,16 +64,16 @@ void cgit_print_tag(char *revname)
|
||||
return;
|
||||
}
|
||||
html("<table class='commit-info'>\n");
|
||||
htmlf("<tr><td>Tag name</td><td>");
|
||||
htmlf("<tr><td>tag name</td><td>");
|
||||
html_txt(revname);
|
||||
htmlf(" (%s)</td></tr>\n", sha1_to_hex(sha1));
|
||||
if (info->tagger_date > 0) {
|
||||
html("<tr><td>Tag date</td><td>");
|
||||
html("<tr><td>tag date</td><td>");
|
||||
cgit_print_date(info->tagger_date, FMT_LONGDATE, ctx.cfg.local_time);
|
||||
html("</td></tr>\n");
|
||||
}
|
||||
if (info->tagger) {
|
||||
html("<tr><td>Tagged by</td><td>");
|
||||
html("<tr><td>tagged by</td><td>");
|
||||
html_txt(info->tagger);
|
||||
if (info->tagger_email && !ctx.cfg.noplainemail) {
|
||||
html(" ");
|
||||
@ -81,7 +81,7 @@ void cgit_print_tag(char *revname)
|
||||
}
|
||||
html("</td></tr>\n");
|
||||
}
|
||||
html("<tr><td>Tagged object</td><td>");
|
||||
html("<tr><td>tagged object</td><td class='sha1'>");
|
||||
cgit_object_link(tag->tagged);
|
||||
html("</td></tr>\n");
|
||||
if (ctx.repo->snapshots)
|
||||
@ -90,10 +90,10 @@ void cgit_print_tag(char *revname)
|
||||
print_tag_content(info->msg);
|
||||
} else {
|
||||
html("<table class='commit-info'>\n");
|
||||
htmlf("<tr><td>Tag name</td><td>");
|
||||
htmlf("<tr><td>tag name</td><td>");
|
||||
html_txt(revname);
|
||||
html("</td></tr>\n");
|
||||
html("<tr><td>Tagged object</td><td>");
|
||||
html("<tr><td>Tagged object</td><td class='sha1'>");
|
||||
cgit_object_link(obj);
|
||||
html("</td></tr>\n");
|
||||
if (ctx.repo->snapshots)
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user