Skip to content
Snippets Groups Projects
Commit 7a7332b9 authored by N.Geisler & B. Hättasch's avatar N.Geisler & B. Hättasch
Browse files

standardize formatting

parent 465e8a43
No related branches found
No related tags found
No related merge requests found
...@@ -4,53 +4,53 @@ ...@@ -4,53 +4,53 @@
{% load tags_AKSubmission %} {% load tags_AKSubmission %}
<table id="akTable" class="table table-striped"> <table id="akTable" class="table table-striped">
<thead> <thead>
<tr> <tr>
<th>{% trans "Name" %}</th> <th>{% trans "Name" %}</th>
<th>{% trans "Who?" %}</th> <th>{% trans "Who?" %}</th>
<th>{% trans 'Category' %}</th> <th>{% trans 'Category' %}</th>
<th>{% trans "Tags" %}</th> <th>{% trans "Tags" %}</th>
<th></th> <th></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{% for ak in AKs %} {% for ak in AKs %}
<tr> <tr>
<td> <td>
<b>{{ ak.name }}</b> <b>{{ ak.name }}</b>
{% if ak.present %} {% if ak.present %}
<span class="badge badge-dark badge-pill" <span class="badge badge-dark badge-pill"
title="{% trans 'present this AK' %}">{% fontawesome_icon "bullhorn" %}</span> title="{% trans 'present this AK' %}">{% fontawesome_icon "bullhorn" %}</span>
{% endif %} {% endif %}
{% if ak.reso %} {% if ak.reso %}
<span class="badge badge-dark badge-pill" <span class="badge badge-dark badge-pill"
title="{% trans 'Reso' %}">{% fontawesome_icon "scroll" %}</span> title="{% trans 'Reso' %}">{% fontawesome_icon "scroll" %}</span>
{% endif %} {% endif %}
</td> </td>
<td> <td>
{% if ak.wish %} {% if ak.wish %}
<span class="badge badge-dark badge-pill">{% trans "AK Wish" %}</span> <span class="badge badge-dark badge-pill">{% trans "AK Wish" %}</span>
{% else %} {% else %}
{{ ak.owners_list }} {{ ak.owners_list }}
{% endif %} {% endif %}
</td> </td>
<td>{% category_linked_badge ak.category event.slug %}</td> <td>{% category_linked_badge ak.category event.slug %}</td>
<td>{% tag_list ak.tags.all event.slug %}</td> <td>{% tag_list ak.tags.all event.slug %}</td>
<td class="text-right"> <td class="text-right">
<a href="{% url 'submit:ak_detail' event_slug=ak.event.slug pk=ak.pk %}" <a href="{% url 'submit:ak_detail' event_slug=ak.event.slug pk=ak.pk %}"
class="btn btn-primary">{% fontawesome_icon 'info' %}</a> class="btn btn-primary">{% fontawesome_icon 'info' %}</a>
{% if ak.link %} {% if ak.link %}
<a href="{{ ak.link }}" class="btn btn-info">{% fontawesome_icon 'external-link-alt' %}</a> <a href="{{ ak.link }}" class="btn btn-info">{% fontawesome_icon 'external-link-alt' %}</a>
{% endif %} {% endif %}
{% if event.active %} {% if event.active %}
<a href="{% url 'submit:ak_edit' event_slug=event.slug pk=ak.pk %}" <a href="{% url 'submit:ak_edit' event_slug=event.slug pk=ak.pk %}"
class="btn btn-success">{% fontawesome_icon 'pencil-alt' %}</a> class="btn btn-success">{% fontawesome_icon 'pencil-alt' %}</a>
{% endif %} {% endif %}
</td> </td>
</tr> </tr>
<tr> <tr>
<td colspan="5" class="small">{{ ak.description }}</td> <td colspan="5" class="small">{{ ak.description }}</td>
</tr> </tr>
{% endfor %} {% endfor %}
</tbody> </tbody>
</table> </table>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment