summaryrefslogtreecommitdiffstatshomepage
path: root/ui-log.c
diff options
context:
space:
mode:
authorGravatar Tom Willemse2013-05-04 15:38:00 +0200
committerGravatar Tom Willemse2013-05-04 15:38:00 +0200
commit4f64d3fa0e20f3b4d56fb8b8bd7e0788944a8c38 (patch)
tree6f4bcd29f656124482c32c94a36b734b1041579f /ui-log.c
parenta6a932e198e8b6b564d7a4bb43e78078d8296026 (diff)
downloadcgit-4f64d3fa0e20f3b4d56fb8b8bd7e0788944a8c38.tar.gz
cgit-4f64d3fa0e20f3b4d56fb8b8bd7e0788944a8c38.zip
Start bootstrapping cgit
Diffstat (limited to 'ui-log.c')
-rw-r--r--ui-log.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/ui-log.c b/ui-log.c
index 2f41602..7973538 100644
--- a/ui-log.c
+++ b/ui-log.c
@@ -63,30 +63,30 @@ void show_commit_decorations(struct commit *commit)
while (deco) {
if (!prefixcmp(deco->name, "refs/heads/")) {
strncpy(buf, deco->name + 11, sizeof(buf) - 1);
- cgit_log_link(buf, NULL, "branch-deco", buf, NULL,
+ cgit_log_link(buf, NULL, "label label-info", buf, NULL,
ctx.qry.vpath, 0, NULL, NULL,
ctx.qry.showmsg);
}
else if (!prefixcmp(deco->name, "tag: refs/tags/")) {
strncpy(buf, deco->name + 15, sizeof(buf) - 1);
- cgit_tag_link(buf, NULL, "tag-deco", ctx.qry.head, buf);
+ cgit_tag_link(buf, NULL, "label label-success", ctx.qry.head, buf);
}
else if (!prefixcmp(deco->name, "refs/tags/")) {
strncpy(buf, deco->name + 10, sizeof(buf) - 1);
- cgit_tag_link(buf, NULL, "tag-deco", ctx.qry.head, buf);
+ cgit_tag_link(buf, NULL, "label label-success", ctx.qry.head, buf);
}
else if (!prefixcmp(deco->name, "refs/remotes/")) {
if (!ctx.repo->enable_remote_branches)
goto next;
strncpy(buf, deco->name + 13, sizeof(buf) - 1);
- cgit_log_link(buf, NULL, "remote-deco", NULL,
+ cgit_log_link(buf, NULL, "label label-inverse", NULL,
sha1_to_hex(commit->object.sha1),
ctx.qry.vpath, 0, NULL, NULL,
ctx.qry.showmsg);
}
else {
strncpy(buf, deco->name, sizeof(buf) - 1);
- cgit_commit_link(buf, NULL, "deco", ctx.qry.head,
+ cgit_commit_link(buf, NULL, "label", ctx.qry.head,
sha1_to_hex(commit->object.sha1),
ctx.qry.vpath, 0);
}
@@ -364,8 +364,8 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *pattern
if (commit_graph)
html("<th></th>");
else
- html("<th class='left'>Age</th>");
- html("<th class='left'>Commit message");
+ html("<th class='left span2'>Age</th>");
+ html("<th class='left span6'>Commit message");
if (pager) {
html(" (");
cgit_log_link(ctx.qry.showmsg ? "Collapse" : "Expand", NULL,
@@ -374,15 +374,15 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *pattern
ctx.qry.search, ctx.qry.showmsg ? 0 : 1);
html(")");
}
- html("</th><th class='left'>Author</th>");
+ html("</th><th class='left span2'>Author</th>");
if (commit_graph)
- html("<th class='left'>Age</th>");
+ html("<th class='left span2'>Age</th>");
if (ctx.repo->enable_log_filecount) {
- html("<th class='left'>Files</th>");
+ html("<th class='left span1'>Files</th>");
columns++;
}
if (ctx.repo->enable_log_linecount) {
- html("<th class='left'>Lines</th>");
+ html("<th class='left span1'>Lines</th>");
columns++;
}
html("</tr>\n");