From 5860f787aa4dfdfa7c12b4d1f08f42968971ee01 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Sep 28 2017 13:17:34 +0000 Subject: Warn the committers if PRs are turned off and there is no readme The idea is to motivate the committers to include a README file in the project explaining how to contribute to the project if the pull-requests are turned off in the project. Fixes https://pagure.io/pagure/issue/2621 Signed-off-by: Pierre-Yves Chibon --- diff --git a/template/repo_info.html b/template/repo_info.html index e215e6d..d44f474 100644 --- a/template/repo_info.html +++ b/template/repo_info.html @@ -33,6 +33,26 @@ {% endblock %} {% block repo %} + + {% if authenticated and g.repo_committer + and not repo.settings.get('pull_requests', True) and not readme %} +
+
+ +
+
+ {% endif %} +
{% if g.repo_obj and g.repo_obj.is_empty %}