From 0889ad1b24b6104fda9a04b3419123c40b08b136 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jean-S=C3=A9bastien=20Caux?= <git@jscaux.org>
Date: Mon, 31 Jan 2022 10:06:28 +0100
Subject: [PATCH] Debug publications listing in nomination li

---
 .../colleges/templates/colleges/_hx_nomination_li.html      | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/scipost_django/colleges/templates/colleges/_hx_nomination_li.html b/scipost_django/colleges/templates/colleges/_hx_nomination_li.html
index 473ba6d78..16dd661ff 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>
-- 
GitLab