diff --git a/pagure/templates/settings.html b/pagure/templates/settings.html index cdb8bf5..8d6eff2 100644 --- a/pagure/templates/settings.html +++ b/pagure/templates/settings.html @@ -326,63 +326,7 @@
-

- Project Options -

-
-
-
- {% for key in repo.settings | sort %} - {% if not config.get('ENABLE_TICKETS', True) and key in ['issue_tracker', 'issues_default_to_private'] %} - {% elif not config.get('DOC_APP_URL') and key in ['project_documentation'] %} - {% elif not config.get('WEBHOOK') and key in ['Web-hooks'] %} - {% else %} - {% if repo.settings[key] in [True, False, 'y'] %} -
- -
- {% elif key in ['Web-hooks'] %} -
- - -
- {% else %} -
- - -
- {% endif %} - {% endif %} - {% endfor %} -

- - {{ form.csrf_token }} -

-
- {% if config.get('WEBHOOK') and repo.settings['Web-hooks'] %} -
- {{ form.csrf_token }} - -
- {% endif %} -
-
+ {% include 'settings_options.html' %}
diff --git a/pagure/templates/settings_options.html b/pagure/templates/settings_options.html new file mode 100644 index 0000000..f9a3769 --- /dev/null +++ b/pagure/templates/settings_options.html @@ -0,0 +1,125 @@ + +

+Project Options +

+
+
+
+ {% for key in repo.settings | sort %} + {% if not config.get('ENABLE_TICKETS', True) and key in ['issue_tracker', 'issues_default_to_private'] %} + {% elif not config.get('DOC_APP_URL') and key in ['project_documentation'] %} + {% elif not config.get('WEBHOOK') and key in ['Web-hooks'] %} + {% else %} + {% if repo.settings[key] in [True, False, 'y'] %} +
+ +
+ {% elif key in ['Web-hooks'] %} +
+ + +
+ {% else %} +
+ + +
+ {% endif %} + {% endif %} + {% endfor %} +

+ + {{ form.csrf_token }} +

+
+ {% if config.get('WEBHOOK') and repo.settings['Web-hooks'] %} +
+ {{ form.csrf_token }} + +
+ {% endif %} + +

+

Learn more about

+
    +
  • Flags
  • +
  • Tracker read-only
  • +
  • Pull-request access only
  • +
  • Roadmap on issue page
  • +
  • fedmsg notifications
  • +
+

+ Pagure offers the possibility to flag pull-requests + and commits. A flag is a way for a third-party tool + to provide feedback on a pull-request or a commit. +
+ Two settings above allow notifying contributors and + watchers of a project when new flags are being added. +
+ The flags documentation. +

+

+ Pagure supports leaving the issue tracker activated + but making it read-only, thus letting people access + to the existing tickets without allowing creating + new tickets or comments. +

+

+ Pagure supports blocking direct commit access to a + project and enforcing all changes to a project to be + done via pull-requests. +

+

+ Pagure supports making the roadmap page the front + page of the issue list. +

+

+ Lets pagure send fedmsg notification for all actions + performed in a project (new ticket, new pull-request, + new comment...).
+ Sending fedmsg notifications upon commits is performed + via a git hook though, see the Hooks section in this + settings page. +

+

+ +
+
+ + + +