List for cgit developers and users
 help / color / mirror / Atom feed
From: john at keeping.me.uk (John Keeping)
Subject: Default view
Date: Mon, 19 Mar 2018 22:16:21 +0000	[thread overview]
Message-ID: <20180319221621.GE2349@john.keeping.me.uk> (raw)
In-Reply-To: <2080901521486118@web2g.yandex.ru>

On Mon, Mar 19, 2018 at 10:01:58PM +0300, Alex Ivanov wrote:
> How to set a default view? When I open repo link a summary view is
> opened by default, but I want to have tree view as default.

You'll have to patch CGit if you want to do that, out of the box you can
set enable-index-links=1 in your cgitrc to add a tree link in the repo
list.

I don't think you can easily make the plain repo url display the tree
because there wouldn't be any way to get to the summary view without
further changes, but it should be possible to swap the
cgit_summary_link() call in ui-repolist.c to cgit_tree_link() so that
the primary link in the repo list points at the tree view.


  reply	other threads:[~2018-03-19 22:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-19 19:01 gnidorah
2018-03-19 22:16 ` john [this message]
2018-03-20 16:31   ` gnidorah

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180319221621.GE2349@john.keeping.me.uk \
    --to=cgit@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).