-rw-r--r-- | cgit.css | 3 | ||||
-rw-r--r-- | ui-shared.c | 4 |
2 files changed, 5 insertions, 2 deletions
@@ -31,27 +31,29 @@ table#header { | |||
31 | 31 | ||
32 | table#header td.logo { | 32 | table#header td.logo { |
33 | width: 96px; | 33 | width: 96px; |
34 | } | 34 | } |
35 | 35 | ||
36 | table#header td.main { | 36 | table#header td.main { |
37 | font-size: 250%; | 37 | font-size: 250%; |
38 | padding-left: 10px; | 38 | padding-left: 10px; |
39 | white-space: nowrap; | ||
39 | } | 40 | } |
40 | 41 | ||
41 | table#header td.main a { | 42 | table#header td.main a { |
42 | color: #000; | 43 | color: #000; |
43 | } | 44 | } |
44 | 45 | ||
45 | table#header td.form { | 46 | table#header td.form { |
46 | text-align: right; | 47 | text-align: right; |
47 | vertical-align: bottom; | 48 | vertical-align: bottom; |
48 | padding-right: 1em; | 49 | padding-right: 1em; |
49 | padding-bottom: 2px; | 50 | padding-bottom: 2px; |
51 | white-space: nowrap; | ||
50 | } | 52 | } |
51 | 53 | ||
52 | table#header td.form form, | 54 | table#header td.form form, |
53 | table#header td.form input, | 55 | table#header td.form input, |
54 | table#header td.form select { | 56 | table#header td.form select { |
55 | font-size: 90%; | 57 | font-size: 90%; |
56 | } | 58 | } |
57 | 59 | ||
@@ -87,16 +89,17 @@ table.tabs td a.active { | |||
87 | 89 | ||
88 | table.tabs td.form { | 90 | table.tabs td.form { |
89 | text-align: right; | 91 | text-align: right; |
90 | } | 92 | } |
91 | 93 | ||
92 | table.tabs td.form form { | 94 | table.tabs td.form form { |
93 | padding-bottom: 2px; | 95 | padding-bottom: 2px; |
94 | font-size: 90%; | 96 | font-size: 90%; |
97 | white-space: nowrap; | ||
95 | } | 98 | } |
96 | 99 | ||
97 | table.tabs td.form input, | 100 | table.tabs td.form input, |
98 | table.tabs td.form select { | 101 | table.tabs td.form select { |
99 | font-size: 90%; | 102 | font-size: 90%; |
100 | } | 103 | } |
101 | 104 | ||
102 | div.content { | 105 | div.content { |
diff --git a/ui-shared.c b/ui-shared.c index 44269a7..cd98387 100644 --- a/ui-shared.c +++ b/ui-shared.c | |||
@@ -540,20 +540,20 @@ void cgit_print_pageheader(struct cgit_context *ctx) | |||
540 | else | 540 | else |
541 | html_attr(cgit_rooturl()); | 541 | html_attr(cgit_rooturl()); |
542 | html("'><img src='"); | 542 | html("'><img src='"); |
543 | html_attr(ctx->cfg.logo); | 543 | html_attr(ctx->cfg.logo); |
544 | html("' alt='cgit logo'/></a></td>\n"); | 544 | html("' alt='cgit logo'/></a></td>\n"); |
545 | 545 | ||
546 | html("<td class='main'>"); | 546 | html("<td class='main'>"); |
547 | if (ctx->repo) { | 547 | if (ctx->repo) { |
548 | cgit_index_link("index", NULL, NULL, NULL, 0); | ||
549 | html(" : "); | ||
548 | reporevlink(NULL, ctx->repo->name, NULL, hc(cmd, "summary"), | 550 | reporevlink(NULL, ctx->repo->name, NULL, hc(cmd, "summary"), |
549 | ctx->qry.head, NULL, NULL); | 551 | ctx->qry.head, NULL, NULL); |
550 | html(" : "); | ||
551 | html_txt(ctx->qry.page); | ||
552 | html("</td><td class='form'>"); | 552 | html("</td><td class='form'>"); |
553 | html("<form method='get' action=''>\n"); | 553 | html("<form method='get' action=''>\n"); |
554 | add_hidden_formfields(0, 1, ctx->qry.page); | 554 | add_hidden_formfields(0, 1, ctx->qry.page); |
555 | html("<select name='h' onchange='this.form.submit();'>\n"); | 555 | html("<select name='h' onchange='this.form.submit();'>\n"); |
556 | for_each_branch_ref(print_branch_option, ctx->qry.head); | 556 | for_each_branch_ref(print_branch_option, ctx->qry.head); |
557 | html("</select> "); | 557 | html("</select> "); |
558 | html("<input type='submit' name='' value='switch'/>"); | 558 | html("<input type='submit' name='' value='switch'/>"); |
559 | html("</form>"); | 559 | html("</form>"); |