Skip to content

Commit

Permalink
Sorted Tags in problems page (#388)
Browse files Browse the repository at this point in the history
  • Loading branch information
SandeepReddy0805 authored Feb 8, 2025
1 parent 3e5cd5b commit 66d3039
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/templates/problems_paging.html
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,12 @@
<div class="note-text text-muted small">{% if problem.is_note %}{{ problem.note_text }}{% endif %}</div>
</td>
<td>
{% for tag in problem.tags.all %}
{% with sorted_tags=problem.tags.all|dictsort:"name" %}
{% for tag in sorted_tags %}
{% ifchanged %}<span class="hidden-tag unevent-hidden-tag badge progress-bar-info{% if show_tags %} hidden{% endif %}">&nbsp;</span>{% endifchanged %}
<a href="{% url_transform request tag=tag.id %}" class="tag badge progress-bar-info{% if not show_tags %} hidden{% endif %}">{{ tag.name }}</a>
{% endfor %}
{% endwith %}
</td>
</tr>
{% endfor %}
Expand Down

0 comments on commit 66d3039

Please sign in to comment.