Skip to content

Commit

Permalink
Merge pull request #940 from readthedocs/davidfischer/visual-cue-rene…
Browse files Browse the repository at this point in the history
…wing

Add a visual cue for renewing flights on listview
  • Loading branch information
davidfischer authored Nov 14, 2024
2 parents 795a0bf + 51f3f2c commit ee3ba79
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions adserver/templates/adserver/advertiser/flight-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ <h1>{% block heading %}{% trans "Manage advertising flights" %}{% endblock headi
<a href="{% url 'flight_detail' advertiser.slug flight.slug %}">{{ flight.name }}</a>
{% if not flight.live %}
<span class="fa fa-eye-slash fa-fw text-muted" aria-hidden="true" data-toggle="tooltip" title="{% trans 'This flight is disabled' %}"></span>
{% elif flight.auto_renew %}
<span class="fa fa-refresh fa-fw text-muted" aria-hidden="true" data-toggle="tooltip" title="{% trans 'Flight will automatically renew when complete' %}" data-original-title="{% trans 'Flight will automatically renew when complete' %}"></span>
{% endif %}
</td>
<td>{{ flight.start_date }}</td>
Expand Down
3 changes: 3 additions & 0 deletions adserver/templates/adserver/advertiser/overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ <h5 class="card-title">{% blocktrans %}{{ state }} flights{% endblocktrans %}</h
<tr>
<td>
<a href="{% url 'flight_detail' advertiser.slug flight.slug %}">{{ flight.name }}</a>
{% if flight.auto_renew %}
<span class="fa fa-refresh fa-fw text-muted" aria-hidden="true" data-toggle="tooltip" title="{% trans 'Flight will automatically renew when complete' %}" data-original-title="{% trans 'Flight will automatically renew when complete' %}"></span>
{% endif %}
</td>
<td>{{ flight.end_date }}</td>
<td class="text-right">{{ flight.ctr|floatformat:3 }}%</td>
Expand Down

0 comments on commit ee3ba79

Please sign in to comment.