From c46cc3906bdafc61e477ab526c00da73b8b9e4e7 Mon Sep 17 00:00:00 2001 From: George Katsikas <giorgakis.katsikas@gmail.com> Date: Tue, 28 Nov 2023 09:42:46 +0100 Subject: [PATCH] add country to ror results and info --- .../organizations/_hx_ror_search_results.html | 19 +++++++++++++------ .../_organization_ror_detail_contents.html | 5 ++--- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/scipost_django/organizations/templates/organizations/_hx_ror_search_results.html b/scipost_django/organizations/templates/organizations/_hx_ror_search_results.html index 6664504f8..8c3f625f5 100644 --- a/scipost_django/organizations/templates/organizations/_hx_ror_search_results.html +++ b/scipost_django/organizations/templates/organizations/_hx_ror_search_results.html @@ -1,4 +1,4 @@ - +{% load static %} {% for item in results.items %} @@ -10,11 +10,18 @@ <div>{{ item.name }}</div> - <a class="ms-auto" - href="{{ item.ror_link }}" - target="_blank" - title="Visit page on ROR.org">{% include "bi/link.html" %}</a> - + <div class="ms-auto"> + <img class="me-2" + width="16" + height="11" + title="{{ item.country.name }}" + alt="{{ item.country.name }}" + src="{% static 'flags/'|add:item.country.country_code|lower|add:'.gif' %}" /> + + <a href="{{ item.ror_link }}" + target="_blank" + title="Visit page on ROR.org">{% include "bi/link.html" %}</a> + </div> </div> <div class="ps-4"> diff --git a/scipost_django/organizations/templates/organizations/_organization_ror_detail_contents.html b/scipost_django/organizations/templates/organizations/_organization_ror_detail_contents.html index 61f5eecda..bb06070ca 100644 --- a/scipost_django/organizations/templates/organizations/_organization_ror_detail_contents.html +++ b/scipost_django/organizations/templates/organizations/_organization_ror_detail_contents.html @@ -30,13 +30,12 @@ {% endif %} - - {% comment %} <tr> + <tr> <td>Country</td> <td>{{ ror.country.country_name }}</td> </tr> - <tr> + {% comment %} <tr> <td>Year established</td> <td>{{ ror.established }}</td> </tr> {% endcomment %} -- GitLab