diff options
| author | Lars Hjemli <hjemli@gmail.com> | 2007-06-29 20:32:08 +0200 | 
|---|---|---|
| committer | Lars Hjemli <hjemli@gmail.com> | 2007-06-29 20:32:08 +0200 | 
| commit | 16a3d2779ccd56bf7954d98da547247d8796544b (patch) | |
| tree | 86d2ed41adc3de842c7518d614ea49ca0200e4d2 /cgit.c | |
| parent | Add version info from git-describe (diff) | |
| parent | Add ofs argument to cgit_log_link and use it in ui-log.c (diff) | |
| download | cgit-16a3d2779ccd56bf7954d98da547247d8796544b.tar.gz cgit-16a3d2779ccd56bf7954d98da547247d8796544b.tar.bz2 cgit-16a3d2779ccd56bf7954d98da547247d8796544b.zip  | |
Merge branch 'lh/menu'
* lh/menu:
  Add ofs argument to cgit_log_link and use it in ui-log.c
  Add trim_end() and use it to remove trailing slashes from repo paths
  Do not include current path in the "tree" menu link
  Add setting to enable/disable extra links on index page
  Change S/L/T to summary/log/tree
  Change "files" to "tree"
  Include querystring as part of cached filename for repo summary page
  Add more menuitems on repo pages
Diffstat (limited to '')
| -rw-r--r-- | cgit.c | 10 | ||||
| -rw-r--r-- | cgit.css | 23 | 
2 files changed, 23 insertions, 10 deletions
@@ -26,13 +26,15 @@ static int cgit_prepare_cache(struct cacheitem *item)  	}  	if (!cgit_cmd) { -		item->name = xstrdup(fmt("%s/%s/index.html", cgit_cache_root, -			   cache_safe_filename(cgit_repo->url))); +		item->name = xstrdup(fmt("%s/%s/index.%s.html", cgit_cache_root, +					 cache_safe_filename(cgit_repo->url), +					 cache_safe_filename(cgit_querystring)));  		item->ttl = cgit_cache_repo_ttl;  	} else {  		item->name = xstrdup(fmt("%s/%s/%s/%s.html", cgit_cache_root, -			   cache_safe_filename(cgit_repo->url), cgit_query_page, -			   cache_safe_filename(cgit_querystring))); +					 cache_safe_filename(cgit_repo->url), +					 cgit_query_page, +					 cache_safe_filename(cgit_querystring)));  		if (cgit_query_has_symref)  			item->ttl = cgit_cache_dynamic_ttl;  		else if (cgit_query_has_sha1) @@ -95,6 +95,14 @@ td#header {  	vertical-align: text-bottom;  } +td#header a { +	color: #666; +} + +td#header a:hoved { +	text-decoration: underline; +} +  td#logo {  	text-align: right;  	vertical-align: middle; @@ -116,11 +124,13 @@ td#crumb {  td#crumb a {  	color: #ccc;  	background-color: #666; +	padding: 0em 0.5em 0em 0.5em;  }  td#crumb a:hover { -	color: #eee; -	background-color: #666; +	color: #666; +	background-color: #ccc; +	text-decoration: none;  }  td#search { @@ -361,16 +371,17 @@ table.list td.repogroup {  a.button {  	font-size: 80%; -	color: #333; -	background-color: #ccc; -	border: solid 1px #999; +	color: #aaa; +	background-color: #eee; +	border: solid 1px #aaa;  	padding: 0em 0.5em;  	margin: 0.1em 0.25em;  }  a.button:hover {  	text-decoration: none; -	background-color: #eee; +	color: #333; +	background-color: #ccc;  }  a.primary {  |