File tree Expand file tree Collapse file tree 4 files changed +26
-10
lines changed Expand file tree Collapse file tree 4 files changed +26
-10
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ command will be run immediately and will inform you of the changes and errors.
71
71
.. _Sprintable : https://github.com/rtfd/readthedocs.org/issues?q=is%3Aopen+is%3Aissue+label%3ASprintable
72
72
.. _contribution-guide.org : http://www.contribution-guide.org/#submitting-bugs
73
73
74
+ .. _pre-commit : https://github.com/pre-commit/pre-commit
74
75
.. _autoflake : https://github.com/myint/autoflake
75
76
.. _autopep8 : https://github.com/hhatto/autopep8
76
77
.. _docformatter : https://github.com/myint/docformatter
Original file line number Diff line number Diff line change @@ -161,8 +161,8 @@ class Meta(object):
161
161
'documentation_type' ,
162
162
'language' ,
163
163
'programming_language' ,
164
- 'project_url' ,
165
164
'tags' ,
165
+ 'project_url' ,
166
166
)
167
167
168
168
description = forms .CharField (
Original file line number Diff line number Diff line change @@ -17,6 +17,12 @@ class CommunityTestSettings(CommunityDevSettings):
17
17
DEBUG = False
18
18
TEMPLATE_DEBUG = False
19
19
20
+ @property
21
+ def LOGGING (self ): # noqa - avoid pep8 N802
22
+ logging = super (CommunityDevSettings , self ).LOGGING
23
+ return logging
24
+
25
+
20
26
21
27
CommunityTestSettings .load_settings (__name__ )
22
28
Original file line number Diff line number Diff line change @@ -24,10 +24,10 @@ <h3>{% trans "Last Built" %}</h3>
24
24
< span class ="build-state build-state-failing "> {% trans "failed" %}</ span >
25
25
{% endif %}
26
26
{% else %}
27
- Currently Building
27
+ {% trans " Currently Building" %}
28
28
{% endif %}
29
29
{% else %}
30
- No builds yet
30
+ {% trans " No builds yet" %}
31
31
{% endif %}
32
32
{% endwith %}
33
33
</ p >
@@ -61,16 +61,25 @@ <h3>{% trans "Badge" %}</h3>
61
61
62
62
63
63
{% block tags %}
64
- {% if project.tags.count %}
65
64
< h3 > {% trans "Tags" %}</ h3 >
66
65
< p >
67
- {% for tag in project.tags.all %}
68
- < a href ="{% url "projects_tag_detail " tag.slug %}"> {{ tag.name }}</ a > {% if forloop.last %}{% else %}, {% endif %}
69
- {% empty %}
70
- < span class ="quiet "> {% trans "No tags" %}</ span >
71
- {% endfor %}
66
+
67
+ {% if project.tags.exists %}
68
+ {% for tag in project.tags.all %}
69
+ < a href ="{% url "projects_tag_detail " tag.slug %}"> {{ tag.name }}</ a > {% if forloop.last %}{% else %}, {% endif %}
70
+ {% endfor %}
71
+ {% else %}
72
+ {% trans "Project has no tags." %}
73
+ {% if request.user|is_admin:project %}
74
+
75
+ {% url 'projects_edit' project.slug as edit_url %}
76
+ {% blocktrans %}
77
+ Add some in your < a href ="{{ edit_url }} "> project settings</ a > .
78
+ {% endblocktrans %}
79
+ {% endif %}
80
+ {% endif %}
81
+
72
82
</ p >
73
- {% endif %}
74
83
{% endblock %}
75
84
76
85
{% block privacy-level %}
You can’t perform that action at this time.
0 commit comments