From 777faf7e509e1de2b795b2a326ff00c9bd799104 Mon Sep 17 00:00:00 2001
From: Lars Hjemli
Date: Sun, 28 Jan 2007 00:39:26 +0100
Subject: Cleanup table listings
Make the output for
a bit nicer
Signed-off-by: Lars Hjemli
---
cgit.css | 10 +++-------
ui-log.c | 2 +-
ui-repolist.c | 2 +-
ui-summary.c | 4 ++--
ui-tree.c | 2 +-
ui-view.c | 2 +-
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 {
}
table.list {
- border: solid 1px black;
+ border: none;
border-collapse: collapse;
- border: solid 1px #aaa;
}
table.list tr {
background: white;
}
table.list tr:hover {
- background: #eeb;
+ background: #eee;
}
table.list tr.nohover:hover {
background: white;
}
table.list th {
font-weight: normal;
- background: #ddd;
- border-top: solid 1px #aaa;
- border-bottom: solid 1px #aaa;
+ border-bottom: solid 1px #777;
padding: 0.1em 0.5em 0.1em 0.5em;
vertical-align: baseline;
}
@@ -52,7 +49,6 @@ img {
border: none;
}
-
div#header {
background-color: #ddd;
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)
html("Log
");
html("");
- html("Date | "
+ html("
---|
Date | "
"Message | "
"Author |
\n");
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)
html("Repositories
\n");
html("");
- html(""
+ html("
"
"Name | "
"Description | "
"Owner |
\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,
static void cgit_print_branches()
{
- html("Branch | "
+ html("
---|
Branch | "
"Updated | "
"Author | "
"Head commit |
\n");
@@ -105,7 +105,7 @@ static void cgit_print_branches()
static void cgit_print_tags()
{
- html("Tag | "
+ html("
---|
Tag | "
"Created | "
"Author | "
"Reference |
\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)
html("Tree content
\n");
html_txt(path);
html("\n");
- html("");
+ html("
");
html("Mode | ");
html("Name | ");
html("Size | ");
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)
buf[size] = '\0';
html("Object content
\n");
html("\n");
- htmlf("%s %s, %li bytes |
\n", type, hex, size);
+ htmlf("%s %s, %li bytes |
\n", type, hex, size);
html("\n");
html_txt(buf);
html("\n |
\n");
--
cgit 1.4.1-21-gabe81