Skip to content
Snippets Groups Projects
Commit d54b3df6 authored by Benjamin Hättasch's avatar Benjamin Hättasch Committed by Nadja Geisler
Browse files

Show user links (if available)

Show links to external user profiles in AK list and detail view
Make AK name a link to its detail page in AK list
parent ece79441
No related branches found
No related tags found
1 merge request!30Show user links (if available)
......@@ -54,7 +54,9 @@
<table class="table table-borderless">
<tr>
<td>{% trans "Who?" %}</td>
<td>{{ ak.owners_list }}</td>
<td>
{% include "AKSubmission/owners_list.html" with owners=ak.owners %}
</td>
</tr>
<tr>
<td>{% trans 'Category' %}</td>
......
......@@ -17,7 +17,10 @@
{% for ak in AKs %}
<tr>
<td>
<b>{{ ak.name }}</b>
<a href="{% url 'submit:ak_detail' event_slug=ak.event.slug pk=ak.pk %}"
class="text-dark text-decoration-none font-weight-bold">
{{ ak.name }}
</a>
{% if ak.present %}
<span class="badge badge-dark badge-pill"
title="{% trans 'present this AK' %}">{% fa5_icon "bullhorn" 'fas' %}</span>
......@@ -31,7 +34,7 @@
{% if ak.wish %}
<span class="badge badge-dark badge-pill">{% trans "AK Wish" %}</span>
{% else %}
{{ ak.owners_list }}
{% include "AKSubmission/owners_list.html" with owners=ak.owners %}
{% endif %}
</td>
<td>{% category_linked_badge ak.category event.slug %}</td>
......
{% for owner in owners.all %}{% if not forloop.first %}, {% endif %}{% if owner.link %}<a href="{{ owner.link }}">{{ owner }}</a>{% else %}{{ owner }}{% endif %}{% endfor %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment