neocgit

a more 'modern' version of cgit
Log | Files | Refs | Submodules | README | LICENSE | git clone https://git.ne02ptzero.me/git/neocgit

commit 0c38619207f6c59b5eb28d0205bd8029322937c4
parent c4fbb99cee30fa295e240b429b2dc7e8ad83d535
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Thu, 28 Jun 2018 09:07:29 +0200

WORK: Basic work / hack on cgit

Signed-off-by: Ne02ptzero <louis@ne02ptzero.me>

Diffstat:
Mcgit.css | 9++++++++-
Mui-repolist.c | 1+
Mui-shared.c | 4++--
3 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/cgit.css b/cgit.css @@ -1,3 +1,10 @@ +html, body { + width: 100%; + height: 100%; + padding: 0; + margin: 0; +} + div#cgit { padding: 0em; margin: 0em; @@ -5,7 +12,6 @@ div#cgit { font-size: 10pt; color: #333; background: white; - padding: 4px; } div#cgit a { @@ -24,6 +30,7 @@ div#cgit table { div#cgit table#header { width: 100%; margin-bottom: 1em; + background: black; } div#cgit table#header td.logo { diff --git a/ui-repolist.c b/ui-repolist.c @@ -293,6 +293,7 @@ void cgit_print_repolist(void) else if (ctx.cfg.section_sort) sort_repolist("section"); + html("<h1>Hello!</h1>"); html("<table summary='repository list' class='list nowrap'>"); for (i = 0; i < cgit_repolist.count; i++) { ctx.repo = &cgit_repolist.repos[i]; diff --git a/ui-shared.c b/ui-shared.c @@ -975,8 +975,8 @@ static void print_header(void) html("</td><td class='sub right'>"); html_txt(ctx.repo->owner); } else { - if (ctx.cfg.root_desc) - html_txt(ctx.cfg.root_desc); + /*if (ctx.cfg.root_desc)*/ + /*html_txt(ctx.cfg.root_desc);*/ } html("</td></tr></table>\n"); }