summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--cgit.css34
-rw-r--r--ui-repolist.c24
2 files changed, 43 insertions, 15 deletions
diff --git a/cgit.css b/cgit.css
index 5dd43b0..b14f77e 100644
--- a/cgit.css
+++ b/cgit.css
@@ -357,4 +357,34 @@ table.diff td div.del {
357table.list td.repogroup { 357table.list td.repogroup {
358 padding-top: 1em; 358 font-style: italic;
359 border-bottom: solid 1px #777; 359 color: #888;
360}
361
362a.button {
363 font-size: 80%;
364 color: #333;
365 background-color: #ccc;
366 border: solid 1px #999;
367 padding: 0em 0.5em;
368 margin: 0.1em 0.25em;
369}
370
371a.button:hover {
372 text-decoration: none;
373 background-color: #eee;
374}
375
376a.primary {
377 font-size: 100%;
378}
379
380a.secondary {
381 font-size: 90%;
382}
383
384td.toplevel-repo {
385
386}
387
388table.list td.sublevel-repo {
389 padding-left: 1.5em;
360} 390}
diff --git a/ui-repolist.c b/ui-repolist.c
index 33e3e7f..f5e087f 100644
--- a/ui-repolist.c
+++ b/ui-repolist.c
@@ -29,3 +29,3 @@ void cgit_print_repolist(struct cacheitem *item)
29 "<th class='left'>Owner</th>" 29 "<th class='left'>Owner</th>"
30 "<th class='left'>Links</th></tr>\n"); 30 "<th>Links</th></tr>\n");
31 31
@@ -42,4 +42,5 @@ void cgit_print_repolist(struct cacheitem *item)
42 } 42 }
43 html("<tr><td>"); 43 htmlf("<tr><td class='%s'>",
44 html_link_open(cgit_repourl(repo->url), NULL, NULL); 44 repo->group ? "sublevel-repo" : "toplevel-repo");
45 html_link_open(cgit_repourl(repo->url), repo->desc, NULL);
45 html_txt(repo->name); 46 html_txt(repo->name);
@@ -51,14 +52,11 @@ void cgit_print_repolist(struct cacheitem *item)
51 html("</td><td>"); 52 html("</td><td>");
52 html_link_open(cgit_pageurl(repo->name, "commit", NULL), 53 html_link_open(cgit_repourl(repo->url),
53 "Commit: display last commit", NULL); 54 "Summary", "button");
54 html("C</a> "); 55 html("S</a>");
55 html_link_open(cgit_pageurl(repo->name, "diff", NULL),
56 "Diff: see changes introduced by last commit", NULL);
57 html("D</a> ");
58 html_link_open(cgit_pageurl(repo->name, "log", NULL), 56 html_link_open(cgit_pageurl(repo->name, "log", NULL),
59 "Log: show history of the main branch", NULL); 57 "Log", "button");
60 html("L</a> "); 58 html("L</a>");
61 html_link_open(cgit_pageurl(repo->name, "tree", NULL), 59 html_link_open(cgit_pageurl(repo->name, "tree", NULL),
62 "Tree: browse the files in the main branch", NULL); 60 "Files", "button");
63 html("T</a>"); 61 html("F</a>");
64 html("</td></tr>\n"); 62 html("</td></tr>\n");