summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Hjemli <larsh@slaptop.hjemli.net>2007-01-28 00:39:26 +0100
committerLars Hjemli <hjemli@gmail.com>2007-01-28 00:52:41 +0100
commit777faf7e509e1de2b795b2a326ff00c9bd799104 (patch)
treeccb440445caf46cbfa3d4bd21d743697f37a9876
parent447025f62ccbbb6e038d42009368e28f3e162460 (diff)
downloadcgit-777faf7e509e1de2b795b2a326ff00c9bd799104.tar.gz
cgit-777faf7e509e1de2b795b2a326ff00c9bd799104.tar.bz2
cgit-777faf7e509e1de2b795b2a326ff00c9bd799104.zip
Cleanup table listings
Make the output for <table class='list'> a bit nicer Signed-off-by: Lars Hjemli <larsh@slaptop.hjemli.net>
-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 {
}
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("<h2>Log</h2>");
html("<table class='list nowrap'>");
- html("<tr><th class='left'>Date</th>"
+ html("<tr class='nohover'><th class='left'>Date</th>"
"<th class='left'>Message</th>"
"<th class='left'>Author</th></tr>\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("<h2>Repositories</h2>\n");
html("<table class='list nowrap'>");
- html("<tr>"
+ html("<tr class='nohover'>"
"<th class='left'>Name</th>"
"<th class='left'>Description</th>"
"<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,
static void cgit_print_branches()
{
- html("<tr><th class='left'>Branch</th>"
+ html("<tr class='nohover'><th class='left'>Branch</th>"
"<th class='left'>Updated</th>"
"<th class='left'>Author</th>"
"<th class='left'>Head commit</th></tr>\n");
@@ -105,7 +105,7 @@ static void cgit_print_branches()
static void cgit_print_tags()
{
- html("<tr><th class='left'>Tag</th>"
+ html("<tr class='nohover'><th class='left'>Tag</th>"
"<th class='left'>Created</th>"
"<th class='left'>Author</th>"
"<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)
html("<h2>Tree content</h2>\n");
html_txt(path);
html("<table class='list'>\n");
- html("<tr>");
+ html("<tr class='nohover'>");
html("<th class='left'>Mode</th>");
html("<th class='left'>Name</th>");
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)
buf[size] = '\0';
html("<h2>Object content</h2>\n");
html("<table class='list'>\n");
- htmlf("<tr><th>%s %s, %li bytes</th></tr>\n", type, hex, size);
+ htmlf("<tr class='nohover'><th class='left'>%s %s, %li bytes</th></tr>\n", type, hex, size);
html("<tr><td class='blob'>\n");
html_txt(buf);
html("\n</td></tr>\n");
id=ded9393b173853d2e960f9b176aeb0bc4ed35be2&follow=1'>Add submodule links in tree listingLars Hjemli6-12/+27 When a submodule occurs in a tree, generate a link to show the module/commit. The link is specified as a sprintf string in /etc/cgitrc, using parameters 'module-link' and 'repo.module-link'. This should probably be extended with repo.module-link.$path. Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2007-05-11Add submodules.sh and use it during buildsLars Hjemli3-13/+222 This adds a shell script which can be be used to initialize, list and update submodules in a git repository. It reads the file .gitmodules to find a mapping between submodule path and repository url for the initial clone of all submodules. The script is used during cgit builds to enable automatic download and checkout of the git git repository. Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2007-05-11Added git as a submoduleLars Hjemli2-1/+1 This commit adds the subdirectory 'git' as a submodule containing the git git repository, but doesn't add support for automatically cloning the submodule. Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2007-05-09Add support for downloading single blobsLars Hjemli5-3/+47 Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2007-05-08ui-view: show pathname if specified in querystringLars Hjemli3-5/+10 Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2007-05-08Update to libgit 1.5.2-rc2Lars Hjemli9-837/+50 Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2007-02-21Layout updateLars Hjemli9-32/+127 2007-02-08Make snapshot feature configurableLars Hjemli5-6/+22 Snapshots can now be enabled/disabled by default for all repositories in cgitrc with param "snapshots". Additionally, any repo can override the default setting with param "repo.snapshots". By default, no snapshotting is enabled. Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2007-02-08Add support for snapshotsLars Hjemli8-8/+153 Make a link from the commit viewer to a snapshot of the corresponding tree. Currently only zip-format is supported. Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2007-02-05cgit v0.2v0.2Lars Hjemli1-1/+1 Main changes since v0.1: -list tags in repo summary -allow search in log-view -read repository paths from cgitrc Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2007-02-05Add support for prefix and gitsrc arguments to 'make'Lars Hjemli2-15/+37 This should improve the installation a little, especially since the new options are mentioned in the README. Also, add a make-rule to build the git binaries if necessary + a dependency between cgit and libgit.a. Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2007-02-04Update cgitrc templateLars Hjemli1-21/+32 Make the descriptions more helpfull. Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2007-02-04Add support for lightweight tagsLars Hjemli2-19/+37 There is nothing bad about a tag that has no tag-object, but the old code didn't handle such tags correctly. Fix it. Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2007-02-04Read repo-info from /etc/cgitrcLars Hjemli5-55/+120 This makes cgit read all repo-info from the configfile, instead of scanning for possible git-dirs below a common root path. This is primarily done to get better security (separate physical path from logical repo-name). In /etc/cgitrc each repo is registered with the following keys: repo.url repo.name repo.path repo.desc repo.owner Note: *Required keys are repo.url and repo.path, all others are optional *Each occurrence of repo.url starts a new repository registration *Default value for repo.name is taken from repo.url *The value of repo.url cannot contain characters with special meaning for urls (i.e. one of /?%&), while repo.name can contain anything. Example: repo.url=cgit-pub repo.name=cgit/public repo.path=/pub/git/cgit repo.desc=My public cgit repo repo.owner=Lars Hjemli repo.url=cgit-priv repo.name=cgit/private repo.path=/home/larsh/src/cgit/.git repo.desc=My private cgit repo repo.owner=Lars Hjemli Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2007-02-04Do not die if tag has no messageLars Hjemli1-2/+2 Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2007-02-03Fix search for non-virtual urlsLars Hjemli1-0/+6 When cgit don't use virtual urls, the current repo and page url parameters must be included in the search form as hidden input fields. Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2007-01-28Update README with install/config informationLars Hjemli1-24/+28 Signed-off-by: Lars Hjemli <hjemli@gmail.com>