-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Try and get folks to put more tags. #3350
Changes from 4 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,10 +24,10 @@ <h3>{% trans "Last Built" %}</h3> | |
<span class="build-state build-state-failing">{% trans "failed" %}</span> | ||
{% endif %} | ||
{% else %} | ||
Currently Building | ||
{% trans "Currently Building" %} | ||
{% endif %} | ||
{% else %} | ||
No builds yet | ||
{% trans "No builds yet" %} | ||
{% endif %} | ||
{% endwith %} | ||
</p> | ||
|
@@ -61,16 +61,25 @@ <h3>{% trans "Badge" %}</h3> | |
|
||
|
||
{% block tags %} | ||
{% if project.tags.count %} | ||
<h3>{% trans "Tags" %}</h3> | ||
<p> | ||
{% for tag in project.tags.all %} | ||
<a href="{% url "projects_tag_detail" tag.slug %}">{{ tag.name }}</a>{% if forloop.last %}{% else %}, {% endif %} | ||
{% empty %} | ||
<span class="quiet">{% trans "No tags" %}</span> | ||
{% endfor %} | ||
|
||
{% if project.tags.count %} | ||
{% for tag in project.tags.all %} | ||
<a href="{% url "projects_tag_detail" tag.slug %}">{{ tag.name }}</a>{% if forloop.last %}{% else %}, {% endif %} | ||
{% endfor %} | ||
{% else %} | ||
{% trans "Project has no tags." %} | ||
{% if request.user|is_admin:project %} | ||
|
||
{% url 'projects_edit' project.slug as edit_url %} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't remember this exactly but, can we just use the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yep, it works! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
{% blocktrans %} | ||
Add some in your <a href="{{ edit_url }}">project settings</a>. | ||
{% endblocktrans %} | ||
{% endif %} | ||
{% endif %} | ||
|
||
</p> | ||
{% endif %} | ||
{% endblock %} | ||
|
||
{% block privacy-level %} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I saw that we are using
.count
in some places where we don't need the number but we want to know the existence. So, maybe it's better to use.exists
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hah yea, old habit!