neocgit

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

commit 575258adc88471fe7ba267b16f2246a34cc1f77e
parent 520edc658aa125fb87c27f675b8a75ea5e4c1888
Author: Louis Solofrizzo <lsolofrizzo@online.net>
Date:   Mon,  1 Oct 2018 17:35:23 +0200

Selects: Now working properly with the custom arrow

Signed-off-by: Louis Solofrizzo <lsolofrizzo@online.net>

Diffstat:
Mcgit.css | 13++++++++++---
Mui-shared.c | 5++++-
2 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/cgit.css b/cgit.css @@ -228,13 +228,17 @@ option:not(:checked) { text-align: left; font-size: 14px; padding: 0px 25px 0 10px; + display: block; + position: relative; + z-index: 999; } .select-arrow { - margin-left: -25px; + margin-left: -20px !important; padding-right: 10px; padding: 6px 10px 6px 0; border-right: 1px solid #e5e5e5; + z-index: 1; } .summary-header .repo-url li .copy { @@ -338,7 +342,7 @@ option:not(:checked) { } .summary-branches ul li .select-container .select { - width: 85%; + width: 100%; } .summary-branches ul li .select-container .select select { @@ -350,10 +354,13 @@ option:not(:checked) { width: 10%; border: 0; text-align: center; + margin-left: 0 !important; + float: right; + margin-top: -32px; } .summary-branches ul li select { - background: #FFFFFF; + background: transparent; border: 1px solid #eee; width: 100%; padding: 5px 5px; diff --git a/ui-shared.c b/ui-shared.c @@ -1071,7 +1071,10 @@ void cgit_print_pageheader(void) } _html("</li>"); _html("<li class='history'>") { - htmlf("<a href='/%s/log?h=%s'>History</a>", ctx.repo->name, ctx.qry.head); + if (ctx.qry.path != NULL) + htmlf("<a href='/%s/log/%s?h=%s'>History</a>", ctx.repo->name, ctx.qry.path, ctx.qry.head); + else + htmlf("<a href='/%s/log?h=%s'>History</a>", ctx.repo->name, ctx.qry.head); } _html("</li>"); } _html("</ul>"); } _html("</div>");