diff options
author | Lars Hjemli <hjemli@gmail.com> | 2009-12-08 18:31:07 +0100 |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2009-12-08 18:31:07 +0100 |
commit | 57bb4fdb8419d7c250d4c6146910df3263943951 (patch) | |
tree | 3597910405ffaebeff892788b1726d707439a8cb /cgit.c | |
parent | Merge branch 'stable' (diff) | |
parent | "max-blob-size" config var to limit generated HTML size (diff) | |
download | cgit-pink-57bb4fdb8419d7c250d4c6146910df3263943951.tar.gz cgit-pink-57bb4fdb8419d7c250d4c6146910df3263943951.zip |
Merge branch 'master' of http://op-co.de/cgit
Diffstat (limited to '')
-rw-r--r-- | cgit.c | 3 | ||||
-rw-r--r-- | cgit.css | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/cgit.c b/cgit.c index bfde9f9..08cb5d2 100644 --- a/cgit.c +++ b/cgit.c @@ -165,6 +165,8 @@ void config_cb(const char *name, const char *value) ctx.cfg.max_msg_len = atoi(value); else if (!strcmp(name, "max-repodesc-length")) ctx.cfg.max_repodesc_len = atoi(value); + else if (!strcmp(name, "max-blob-size")) + ctx.cfg.max_blob_size = atoi(value); else if (!strcmp(name, "max-repo-count")) ctx.cfg.max_repo_count = atoi(value); else if (!strcmp(name, "max-commit-count")) @@ -270,6 +272,7 @@ static void prepare_context(struct cgit_context *ctx) ctx->cfg.max_lock_attempts = 5; ctx->cfg.max_msg_len = 80; ctx->cfg.max_repodesc_len = 80; + ctx->cfg.max_blob_size = 0; ctx->cfg.max_stats = 0; ctx->cfg.module_link = "./?repo=%s&page=commit&id=%s"; ctx->cfg.renamelimit = -1; diff --git a/cgit.css b/cgit.css index c47ebc9..ef7d3c1 100644 --- a/cgit.css +++ b/cgit.css @@ -162,6 +162,11 @@ table.list td a { color: black; } +table.list td a.ls-dir { + font-weight: bold; + color: #00f; +} + table.list td a:hover { color: #00f; } |