summaryrefslogtreecommitdiffabout
path: root/ui-shared.c
authorLars Hjemli <hjemli@gmail.com>2008-07-27 10:22:16 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2008-07-27 10:22:16 (UTC)
commit2d6ee032d0c2f84ebcfaa12d3289e85cfab18fcd (patch) (side-by-side diff)
treed653a5a24e24d6ef3c2cbfc833a212a123aef5fa /ui-shared.c
parent78af25ccac7aab6baccd58e4d65bfe879a25dd54 (diff)
downloadcgit-2d6ee032d0c2f84ebcfaa12d3289e85cfab18fcd.zip
cgit-2d6ee032d0c2f84ebcfaa12d3289e85cfab18fcd.tar.gz
cgit-2d6ee032d0c2f84ebcfaa12d3289e85cfab18fcd.tar.bz2
ui-shared: show repo owner along with description
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'ui-shared.c') (more/less context) (show whitespace changes)
-rw-r--r--ui-shared.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui-shared.c b/ui-shared.c
index 6f83d2a..209af6e 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -551,54 +551,54 @@ void cgit_print_pageheader(struct cgit_context *ctx)
else
html_attr(cgit_rooturl());
html("'><img src='");
html_attr(ctx->cfg.logo);
html("' alt='cgit logo'/></a></td>\n");
html("<td class='main'>");
if (ctx->repo) {
cgit_index_link("index", NULL, NULL, NULL, 0);
html(" : ");
reporevlink(NULL, ctx->repo->name, NULL, hc(cmd, "summary"),
ctx->qry.head, NULL, NULL);
html("</td><td class='form'>");
html("<form method='get' action=''>\n");
add_hidden_formfields(0, 1, ctx->qry.page);
html("<select name='h' onchange='this.form.submit();'>\n");
for_each_branch_ref(print_branch_option, ctx->qry.head);
html("</select> ");
html("<input type='submit' name='' value='switch'/>");
html("</form>");
} else
html_txt(ctx->cfg.root_title);
html("</td></tr>\n");
- html("<tr><td class='sub'");
+ html("<tr><td class='sub'>");
if (ctx->repo) {
- html(" colspan='2'>");
html_txt(ctx->repo->desc);
+ html("</td><td class='sub right'>");
+ html_txt(ctx->repo->owner);
} else {
- html(">");
if (ctx->cfg.root_desc)
html_txt(ctx->cfg.root_desc);
else if (ctx->cfg.index_info)
html_include(ctx->cfg.index_info);
}
html("</td></tr></table>\n");
html("<table class='tabs'><tr><td>\n");
if (ctx->repo) {
reporevlink(NULL, "summary", NULL, hc(cmd, "summary"),
ctx->qry.head, NULL, NULL);
cgit_refs_link("refs", NULL, hc(cmd, "refs"), ctx->qry.head,
ctx->qry.sha1, NULL);
cgit_log_link("log", NULL, hc(cmd, "log"), ctx->qry.head,
NULL, NULL, 0, NULL, NULL);
cgit_tree_link("tree", NULL, hc(cmd, "tree"), ctx->qry.head,
ctx->qry.sha1, NULL);
cgit_commit_link("commit", NULL, hc(cmd, "commit"),
ctx->qry.head, ctx->qry.sha1);
cgit_diff_link("diff", NULL, hc(cmd, "diff"), ctx->qry.head,
ctx->qry.sha1, ctx->qry.sha2, NULL);
if (ctx->repo->readme)
reporevlink("about", "about", NULL,
hc(cmd, "about"), ctx->qry.head, NULL,