]> granicus.if.org Git - cgit/commit
noheader: place branch combo on tabs if no header
authorAndy Green <andy@warmcat.com>
Wed, 20 Jun 2018 13:03:14 +0000 (21:03 +0800)
committerAndy Green <andy@warmcat.com>
Thu, 28 Jun 2018 23:53:21 +0000 (07:53 +0800)
commite633a42223fc4ab7d74df90e47d7c2a7e5c79377
tree997820bfc0d74a7eed2a14a6e6a051fd4d0f7959
parent00ae381bf5af73e74a8904592b8ae28950dcdc5a
noheader: place branch combo on tabs if no header

noheader=1 stops the static page header from being emitted by
cgit, but along with that, the small form that lets the user
change branch context on the page is also lost.

This isn't actually static since it contains a dynamic list of
branches; it can't be reproduced on the user's external header
static html.  So it seems it doesn't belong to the set of header
things that should be disabled.

This patch relocates the branch selection combo and
form on the left of the tabs line if noheader=1.  It doesn't
change anything if noheader is not set.

Signed-off-by: Andy Green <andy@warmcat.com>
Reviewed-by: John Keeping <john@keeping.me.uk>
ui-shared.c