-rw-r--r-- | cgit.css | 14 | ||||
-rw-r--r-- | ui-shared.c | 35 |
2 files changed, 41 insertions, 8 deletions
@@ -97,2 +97,10 @@ td#header { | |||
97 | 97 | ||
98 | td#header a { | ||
99 | color: #666; | ||
100 | } | ||
101 | |||
102 | td#header a:hoved { | ||
103 | text-decoration: underline; | ||
104 | } | ||
105 | |||
98 | td#logo { | 106 | td#logo { |
@@ -118,2 +126,3 @@ td#crumb a { | |||
118 | background-color: #666; | 126 | background-color: #666; |
127 | padding: 0em 0.5em 0em 0.5em; | ||
119 | } | 128 | } |
@@ -121,4 +130,5 @@ td#crumb a { | |||
121 | td#crumb a:hover { | 130 | td#crumb a:hover { |
122 | color: #eee; | 131 | color: #666; |
123 | background-color: #666; | 132 | background-color: #ccc; |
133 | text-decoration: none; | ||
124 | } | 134 | } |
diff --git a/ui-shared.c b/ui-shared.c index 15d8254..383b8ac 100644 --- a/ui-shared.c +++ b/ui-shared.c | |||
@@ -113,2 +113,3 @@ static char *repolink(char *title, char *class, char *page, char *head, | |||
113 | html("/"); | 113 | html("/"); |
114 | if (page) { | ||
114 | html(page); | 115 | html(page); |
@@ -117,2 +118,3 @@ static char *repolink(char *title, char *class, char *page, char *head, | |||
117 | html_attr(path); | 118 | html_attr(path); |
119 | } | ||
118 | } else { | 120 | } else { |
@@ -123,2 +125,3 @@ static char *repolink(char *title, char *class, char *page, char *head, | |||
123 | html("/"); | 125 | html("/"); |
126 | if (page) { | ||
124 | html(page); | 127 | html(page); |
@@ -127,2 +130,3 @@ static char *repolink(char *title, char *class, char *page, char *head, | |||
127 | html_attr(path); | 130 | html_attr(path); |
131 | } | ||
128 | delim = "&"; | 132 | delim = "&"; |
@@ -281,5 +285,7 @@ void cgit_print_pageheader(char *title, int show_search) | |||
281 | html("<table id='layout'>"); | 285 | html("<table id='layout'>"); |
282 | html("<tr><td id='header'>"); | 286 | html("<tr><td id='header'><a href='"); |
283 | html(cgit_root_title); | 287 | html_attr(cgit_rooturl()); |
284 | html("</td><td id='logo'>"); | 288 | html("'>"); |
289 | html_txt(cgit_root_title); | ||
290 | html("</a></td><td id='logo'>"); | ||
285 | html("<a href='"); | 291 | html("<a href='"); |
@@ -289,7 +295,24 @@ void cgit_print_pageheader(char *title, int show_search) | |||
289 | html("<tr><td id='crumb'>"); | 295 | html("<tr><td id='crumb'>"); |
290 | htmlf("<a href='%s'>root</a>", cgit_rooturl()); | ||
291 | if (cgit_query_repo) { | 296 | if (cgit_query_repo) { |
292 | htmlf(" : <a href='%s'>", cgit_repourl(cgit_repo->url)); | ||
293 | html_txt(cgit_repo->name); | 297 | html_txt(cgit_repo->name); |
294 | htmlf("</a> : %s", title); | 298 | html(" ("); |
299 | html_txt(cgit_query_head); | ||
300 | html(") : "); | ||
301 | reporevlink(NULL, "summary", NULL, NULL, cgit_query_head, | ||
302 | NULL, NULL); | ||
303 | html(" "); | ||
304 | cgit_log_link("log", NULL, NULL, cgit_query_head, | ||
305 | cgit_query_sha1, cgit_query_path); | ||
306 | html(" "); | ||
307 | cgit_tree_link("files", NULL, NULL, cgit_query_head, | ||
308 | cgit_query_sha1, cgit_query_path); | ||
309 | html(" "); | ||
310 | cgit_commit_link("commit", NULL, NULL, cgit_query_head, | ||
311 | cgit_query_sha1); | ||
312 | html(" "); | ||
313 | cgit_diff_link("diff", NULL, NULL, cgit_query_head, | ||
314 | cgit_query_sha1, cgit_query_sha2, | ||
315 | cgit_query_path); | ||
316 | } else { | ||
317 | html_txt("Index of repositories"); | ||
295 | } | 318 | } |