diff --git a/scipost_django/colleges/templates/colleges/_hx_nomination_li.html b/scipost_django/colleges/templates/colleges/_hx_nomination_li.html index 473ba6d789171a8218599a18cdfd195dd767ab6f..16dd661ffc8460fb3e1a7bdb1791e19145cb76cf 100644 --- a/scipost_django/colleges/templates/colleges/_hx_nomination_li.html +++ b/scipost_django/colleges/templates/colleges/_hx_nomination_li.html @@ -57,8 +57,8 @@ </tr> <tr><td>Webpage</td> <td> - {% if profile.webpage %} - <a href="{{ profile.webpage }}" target="_blank" rel="noopener">{{ profile.webpage }}</a> + {% if nomination.profile.webpage %} + <a href="{{ nomination.profile.webpage }}" target="_blank" rel="noopener">{{ nomination.profile.webpage }}</a> {% else %} unknown {% endif %} @@ -75,7 +75,7 @@ </div> <div class="card-body"> <ul> - {% for pub in profile.publications.all|slice:":10" %} + {% for pub in nomination.profile.publications.all %} <li><a href="{{ pub.get_absolute_url }}">{{ pub.citation }}</a></li> {% empty %} <li>No Publication found</li>