neocgit

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

commit 3cbbb8ea39d7a85cb5d3c14f81abb174a8b49b95
parent 9786f4613da38cb263e76263370d7816a9347149
Author: Jason A. Donenfeld <Jason@zx2c4.com>
Date:   Fri, 17 Jan 2014 13:53:37 +0100

ui-shared: move about tab all the way to the left

There were no objections (at the time of committing this):
   http://lists.zx2c4.com/pipermail/cgit/2013-May/001393.html
   http://lists.zx2c4.com/pipermail/cgit/2014-January/001904.html

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>

Diffstat:
Mui-shared.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/ui-shared.c b/ui-shared.c @@ -859,6 +859,10 @@ void cgit_print_pageheader(void) html("<table class='tabs'><tr><td>\n"); if (ctx.env.authenticated && ctx.repo) { + if (ctx.repo->readme.nr) + reporevlink("about", "about", NULL, + hc("about"), ctx.qry.head, NULL, + NULL); cgit_summary_link("summary", NULL, hc("summary"), ctx.qry.head); cgit_refs_link("refs", NULL, hc("refs"), ctx.qry.head, @@ -875,10 +879,6 @@ void cgit_print_pageheader(void) if (ctx.repo->max_stats) cgit_stats_link("stats", NULL, hc("stats"), ctx.qry.head, ctx.qry.vpath); - if (ctx.repo->readme.nr) - reporevlink("about", "about", NULL, - hc("about"), ctx.qry.head, NULL, - NULL); html("</td><td class='form'>"); html("<form class='right' method='get' action='"); if (ctx.cfg.virtual_root)