From 211c6a603fdf6b091bc815fb7057a1079e7b584d Mon Sep 17 00:00:00 2001 From: Dhriti Shikhar Date: Oct 02 2015 12:07:54 +0000 Subject: [PATCH 1/3] Hides all projects of front page by default --- diff --git a/pagure/templates/_render_repo.html b/pagure/templates/_render_repo.html index a5d59f6..2460a75 100644 --- a/pagure/templates/_render_repo.html +++ b/pagure/templates/_render_repo.html @@ -96,7 +96,7 @@ All repos: From ea9349966a5c0229fee4c4158889c63245789834 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Oct 02 2015 12:24:01 +0000 Subject: [PATCH 2/3] Add option to turn on/off the display of certain part of the user's page This allows hiding by default all the projects, or the user's fork or the user's projects. The toggle buttons will still work to change the default but this changes the default. --- diff --git a/pagure/default_config.py b/pagure/default_config.py index e855ee7..e8f214f 100644 --- a/pagure/default_config.py +++ b/pagure/default_config.py @@ -46,6 +46,9 @@ ENABLE_DEL_PROJECTS = True # Enables / Disables managing access to the repos ENABLE_USER_MNGT = True +# Enables / Disables showing all the projects by default on the front page +SHOW_PROJECTS_INDEX = [] + # The URL to use to clone the git repositories. GIT_URL_SSH = 'ssh://git@pagure.org/' GIT_URL_GIT = 'git://pagure.org/' diff --git a/pagure/templates/_render_repo.html b/pagure/templates/_render_repo.html index 2460a75..c0dc249 100644 --- a/pagure/templates/_render_repo.html +++ b/pagure/templates/_render_repo.html @@ -33,7 +33,9 @@ {% macro render_repos(list, total, page, title, count, id, username=None) %} -
+