| |
@@ -33,6 +33,26 @@
|
| |
{% endblock %}
|
| |
|
| |
{% block repo %}
|
| |
+
|
| |
+ {% if authenticated and g.repo_committer
|
| |
+ and not repo.settings.get('pull_requests', True) and not readme %}
|
| |
+ <div class="row">
|
| |
+ <div class="col-md-8">
|
| |
+ <div class="alert alert-warning" role="alert">
|
| |
+ <button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
| |
+ <span aria-hidden="true">×</span>
|
| |
+ <span class="sr-only">Close</span>
|
| |
+ </button>
|
| |
+ <p>
|
| |
+ You appear to have turned off pull-request you may want to add
|
| |
+ a README file with instructions on how to contribute to this
|
| |
+ project. Thanks!
|
| |
+ </p>
|
| |
+ </div>
|
| |
+ </div>
|
| |
+ </div>
|
| |
+ {% endif %}
|
| |
+
|
| |
<div class="row">
|
| |
{% if g.repo_obj and g.repo_obj.is_empty %}
|
| |
<div class="col-md-8">
|
| |
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 pingou@pingoured.fr