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

@ -39,7 +39,7 @@
<tbody>
{% for campaign in active_campaigns %}
<tr>
<td>{{ campaign.name }}</td>
<td>{{ campaign.clean_name }}</td>
<td>{{ campaign.owner.name }}</td>
<td>
<span class="badge bg-success" data-bs-toggle="tooltip"
@ -85,7 +85,7 @@
<tbody>
{% for campaign in upcoming_campaigns %}
<tr>
<td>{{ campaign.name }}</td>
<td>{{ campaign.clean_name }}</td>
<td>{{ campaign.owner.name }}</td>
<td>
<span class="badge bg-info text-dark" data-bs-toggle="tooltip"
@ -131,7 +131,7 @@
<tbody>
{% for campaign in expired_campaigns %}
<tr>
<td>{{ campaign.name }}</td>
<td>{{ campaign.clean_name }}</td>
<td>{{ campaign.owner.name }}</td>
<td>
<span class="badge bg-secondary" data-bs-toggle="tooltip"