Skip to content

Commit

Permalink
limit nb of tags and langs to 3 on cards and description to 80chars
Browse files Browse the repository at this point in the history
  • Loading branch information
rgaudin committed Feb 12, 2024
1 parent b8d30d8 commit c0c5ee2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dashboard/templates/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,16 @@
</div>
</a>
<div class="pure-g description">
<p class="pure-u-1">{{ package.description|default("-") }}</p>
<p class="pure-u-1">{{ package.description|default("-")|truncate(80) }}</p>
</div>
<div class="pure-g metadata">
<div class="pure-u-1-5">
<div class="langs">
{% if package.langs %}{% for lang in package.langs %}<span class="lang">{{ lang }}</span>{% endfor %}{% endif %}
{% if package.langs %}{% for lang in package.langs %}{% if loop.index0 <= 2 %}<span class="lang">{{ lang }}</span>{% endif %}{% endfor %}{% endif %}
</div>
</div>
<div class="pure-u-4-5 tags">
{% if package.tags %}{% for tag in package.tags %}<span class="tag">{{ tag }}</span>{% endfor %}{% endif %}
{% if package.tags %}{% for tag in package.tags %}{% if loop.index0 <= 2 %}<span class="tag">{{ tag }}</span>{% endif %}{% endfor %}{% endif %}
</div>
</div>
<div class="download">
Expand Down

0 comments on commit c0c5ee2

Please sign in to comment.