List for cgit developers and users
 help / color / mirror / Atom feed
From: gnidorah at ya.ru (gnidorah at ya.ru)
Subject: Default view
Date: Tue, 20 Mar 2018 19:31:43 +0300	[thread overview]
Message-ID: <573901521563503@web25o.yandex.ru> (raw)
In-Reply-To: <20180319221621.GE2349@john.keeping.me.uk>

Got it. Thanks much for the answer!

20.03.2018, 01:16, "John Keeping" <john at keeping.me.uk>:
> 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-20 16:31 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
2018-03-20 16:31   ` gnidorah [this message]

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=573901521563503@web25o.yandex.ru \
    --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).