#333 Allow to hide all the project of the front page by default
Closed: Fixed None Opened 8 years ago by pingou.

Currently by default we show your projects, forks and all the projects.

We would need a way to hide the 'All the projects' part by default for the whole pagure instance, likely using a configuration key to show/hide by default.

This should be an easyfix:

  • Add a configuration key
  • Adjust the index template to behave accordingly by default

@pingou what is a configuration key? and what functionality it is supposed to have?

@drish20, it's a option in the configuration file, so that you can turn it on or off by just changing the configuration file.

@pingou I have a doubt regarding this issue.

If I remove the "checked" attribute from the HTML tag, then by default ALL USERS won't be able to see all the repos. It is only when one checks the "All repos" button present in the home page, one get to see all repos.

But please tell me if i got this right? According to this issue, we provide a configuration key to the user. So, it is in the user's hand to switch it on/off.
So, that means the user gets to decide that BY DEFAULT all repos should be visible on his home page or not.

No the configuration key is for pagure itself, the pagure admin gets to decide if by default (for this instance of pagure) all the projects are shown on the index page.

Not that this shouldn't influence the behavior of the toggle button, just its state when the page is loaded.

Login to comment on this ticket.

Metadata