Skip to content

Commit

Permalink
Merge pull request #225 from honeylogic-io/simplify-buttons
Browse files Browse the repository at this point in the history
feat: Minimize category buttons on desktop
  • Loading branch information
adinhodovic authored May 30, 2024
2 parents 9e06b36 + acc9105 commit 3a5157b
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions django_wtf/templates/core/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,13 @@ <h3 class="text-lg text-white">Categories</h3>
{% if request|is_mobile or request|is_tablet %}
{% for category in categories|slice:"6" %}
<a href="{% url 'core:category-detail' name=category.name %}"
class="btn btn-primary">
<span class="font-normal uppercase">{{ category.name }}
<span class="text-sm">({{ category.total_repositories }})</span>
</span>
</a>
class="btn btn-primary">{{ category.name }} ({{ category.total_repositories }})</a>
{% endfor %}
{% else %}
{% for category in categories %}
<a href="{% url 'core:category-detail' name=category.name %}"
class="btn btn-primary">
<span class="font-normal uppercase">{{ category.name }}
<span class="text-sm">({{ category.total_repositories }})</span>
</span>
class="btn btn-sm btn-primary">
{{ category.name }} ({{ category.total_repositories }})
</a>
{% endfor %}
{% endif %}
Expand Down

0 comments on commit 3a5157b

Please sign in to comment.