summaryrefslogtreecommitdiffabout
authorLars Hjemli <larsh@slaptop.hjemli.net>2007-01-27 23:39:26 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2007-01-27 23:52:41 (UTC)
commit777faf7e509e1de2b795b2a326ff00c9bd799104 (patch) (unidiff)
treeccb440445caf46cbfa3d4bd21d743697f37a9876
parent447025f62ccbbb6e038d42009368e28f3e162460 (diff)
downloadcgit-777faf7e509e1de2b795b2a326ff00c9bd799104.zip
cgit-777faf7e509e1de2b795b2a326ff00c9bd799104.tar.gz
cgit-777faf7e509e1de2b795b2a326ff00c9bd799104.tar.bz2
Cleanup table listings
Make the output for <table class='list'> a bit nicer Signed-off-by: Lars Hjemli <larsh@slaptop.hjemli.net>
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--cgit.css10
-rw-r--r--ui-log.c2
-rw-r--r--ui-repolist.c2
-rw-r--r--ui-summary.c4
-rw-r--r--ui-tree.c2
-rw-r--r--ui-view.c2
6 files changed, 9 insertions, 13 deletions
diff --git a/cgit.css b/cgit.css
index d94b1b7..d2c0d0b 100644
--- a/cgit.css
+++ b/cgit.css
@@ -23,24 +23,21 @@ a:hover {
23} 23}
24 24
25table.list { 25table.list {
26 border: solid 1px black; 26 border: none;
27 border-collapse: collapse; 27 border-collapse: collapse;
28 border: solid 1px #aaa;
29} 28}
30table.list tr { 29table.list tr {
31 background: white; 30 background: white;
32} 31}
33table.list tr:hover { 32table.list tr:hover {
34 background: #eeb; 33 background: #eee;
35} 34}
36table.list tr.nohover:hover { 35table.list tr.nohover:hover {
37 background: white; 36 background: white;
38} 37}
39table.list th { 38table.list th {
40 font-weight: normal; 39 font-weight: normal;
41 background: #ddd; 40 border-bottom: solid 1px #777;
42 border-top: solid 1px #aaa;
43 border-bottom: solid 1px #aaa;
44 padding: 0.1em 0.5em 0.1em 0.5em; 41 padding: 0.1em 0.5em 0.1em 0.5em;
45 vertical-align: baseline; 42 vertical-align: baseline;
46} 43}
@@ -52,7 +49,6 @@ img {
52 border: none; 49 border: none;
53} 50}
54 51
55
56div#header { 52div#header {
57 background-color: #ddd; 53 background-color: #ddd;
58 padding: 0.25em 0.25em 0.25em 0.5em; 54 padding: 0.25em 0.25em 0.25em 0.5em;
diff --git a/ui-log.c b/ui-log.c
index c353b2a..725f49b 100644
--- a/ui-log.c
+++ b/ui-log.c
@@ -56,7 +56,7 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep)
56 56
57 html("<h2>Log</h2>"); 57 html("<h2>Log</h2>");
58 html("<table class='list nowrap'>"); 58 html("<table class='list nowrap'>");
59 html("<tr><th class='left'>Date</th>" 59 html("<tr class='nohover'><th class='left'>Date</th>"
60 "<th class='left'>Message</th>" 60 "<th class='left'>Message</th>"
61 "<th class='left'>Author</th></tr>\n"); 61 "<th class='left'>Author</th></tr>\n");
62 62
diff --git a/ui-repolist.c b/ui-repolist.c
index 9f12b18..bd4af59 100644
--- a/ui-repolist.c
+++ b/ui-repolist.c
@@ -28,7 +28,7 @@ void cgit_print_repolist(struct cacheitem *item)
28 28
29 html("<h2>Repositories</h2>\n"); 29 html("<h2>Repositories</h2>\n");
30 html("<table class='list nowrap'>"); 30 html("<table class='list nowrap'>");
31 html("<tr>" 31 html("<tr class='nohover'>"
32 "<th class='left'>Name</th>" 32 "<th class='left'>Name</th>"
33 "<th class='left'>Description</th>" 33 "<th class='left'>Description</th>"
34 "<th class='left'>Owner</th></tr>\n"); 34 "<th class='left'>Owner</th></tr>\n");
diff --git a/ui-summary.c b/ui-summary.c
index 1591632..04d4912 100644
--- a/ui-summary.c
+++ b/ui-summary.c
@@ -96,7 +96,7 @@ static int cgit_print_tag_cb(const char *refname, const unsigned char *sha1,
96 96
97static void cgit_print_branches() 97static void cgit_print_branches()
98{ 98{
99 html("<tr><th class='left'>Branch</th>" 99 html("<tr class='nohover'><th class='left'>Branch</th>"
100 "<th class='left'>Updated</th>" 100 "<th class='left'>Updated</th>"
101 "<th class='left'>Author</th>" 101 "<th class='left'>Author</th>"
102 "<th class='left'>Head commit</th></tr>\n"); 102 "<th class='left'>Head commit</th></tr>\n");
@@ -105,7 +105,7 @@ static void cgit_print_branches()
105 105
106static void cgit_print_tags() 106static void cgit_print_tags()
107{ 107{
108 html("<tr><th class='left'>Tag</th>" 108 html("<tr class='nohover'><th class='left'>Tag</th>"
109 "<th class='left'>Created</th>" 109 "<th class='left'>Created</th>"
110 "<th class='left'>Author</th>" 110 "<th class='left'>Author</th>"
111 "<th class='left'>Reference</th></tr>\n"); 111 "<th class='left'>Reference</th></tr>\n");
diff --git a/ui-tree.c b/ui-tree.c
index ed9f05e..1d07e70 100644
--- a/ui-tree.c
+++ b/ui-tree.c
@@ -69,7 +69,7 @@ void cgit_print_tree(const char *hex, char *path)
69 html("<h2>Tree content</h2>\n"); 69 html("<h2>Tree content</h2>\n");
70 html_txt(path); 70 html_txt(path);
71 html("<table class='list'>\n"); 71 html("<table class='list'>\n");
72 html("<tr>"); 72 html("<tr class='nohover'>");
73 html("<th class='left'>Mode</th>"); 73 html("<th class='left'>Mode</th>");
74 html("<th class='left'>Name</th>"); 74 html("<th class='left'>Name</th>");
75 html("<th class='right'>Size</th>"); 75 html("<th class='right'>Size</th>");
diff --git a/ui-view.c b/ui-view.c
index b75ce9a..07cd8be 100644
--- a/ui-view.c
+++ b/ui-view.c
@@ -34,7 +34,7 @@ void cgit_print_view(const char *hex)
34 buf[size] = '\0'; 34 buf[size] = '\0';
35 html("<h2>Object content</h2>\n"); 35 html("<h2>Object content</h2>\n");
36 html("<table class='list'>\n"); 36 html("<table class='list'>\n");
37 htmlf("<tr><th>%s %s, %li bytes</th></tr>\n", type, hex, size); 37 htmlf("<tr class='nohover'><th class='left'>%s %s, %li bytes</th></tr>\n", type, hex, size);
38 html("<tr><td class='blob'>\n"); 38 html("<tr><td class='blob'>\n");
39 html_txt(buf); 39 html_txt(buf);
40 html("\n</td></tr>\n"); 40 html("\n</td></tr>\n");