Refactor campaign name handling to use clean_name property for improved clarity and consistency across templates

This commit is contained in:
Joakim Hellsén 2025-07-10 05:10:09 +02:00
commit 3fb0880271
5 changed files with 32 additions and 8 deletions

View file

@ -38,7 +38,7 @@
<div class="title-wrapper" style="min-height: 2.4rem;">
<h6 class="mb-1" title="{{ campaign.name }}"
style="display: -webkit-box; display: box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; box-orient: vertical; overflow: hidden; font-size: 0.9rem;">
{{ campaign.name }}</h6>
{{ campaign.clean_name }}</h6>
</div>
<p class="mb-1 small text-muted text-truncate">
<a href="{% url 'twitch:game_detail' campaign.game.id %}"