From 62ebd69159f8a9d42018b3dcd0af43f5a4040022 Mon Sep 17 00:00:00 2001
From: "J.-S. Caux" <J.S.Caux@uva.nl>
Date: Wed, 5 May 2021 14:44:25 +0200
Subject: [PATCH] Improve presentation in pool

---
 .../submissions/pool/submission_li.html       | 40 ++++++++++++-------
 templates/bi/bullseye.html                    |  6 +++
 2 files changed, 32 insertions(+), 14 deletions(-)
 create mode 100644 templates/bi/bullseye.html

diff --git a/submissions/templates/partials/submissions/pool/submission_li.html b/submissions/templates/partials/submissions/pool/submission_li.html
index 12638f9c8..de71565b4 100644
--- a/submissions/templates/partials/submissions/pool/submission_li.html
+++ b/submissions/templates/partials/submissions/pool/submission_li.html
@@ -11,23 +11,23 @@
   {% endif %}
 </div>
 <div class="pool-item">
-  <div class="row mb-1">
+  <div class="row mb-2">
     <div class="col-md-7">
-      <a href="{% url 'submissions:submission' submission.preprint.identifier_w_vn_nr %}">{{ submission.title }}</a><br>
+      <a href="{% url 'submissions:submission' submission.preprint.identifier_w_vn_nr %}">{{ submission.title }}</a>
+      <br>
       <em>by {{ submission.author_list }}</em>
+      <br>
+      <div class="my-2">
+	<span class="text-secondary">{% include 'bi/bullseye.html' %}:&nbsp;</span>
+	{{ submission.submitted_to }}
+      </div>
     </div>
     <div class="col-md-5">
-      {% if submission.eicrecommendations.active.first %}
-        <small class="text-muted">EIC Recommendation Status</small>
-        <br>
-        <span class="label label-sm label-secondary">{{ submission.eicrecommendations.active.first.get_full_status_display }}</span>
-      {% endif %}
-      {% if submission.editorial_decision %}
-	<br>
-	<small class="text-muted">Editorial Decision Status</small>
-	<br>
-	<span class="label label-sm label-secondary">{{ submission.editorial_decision.get_status_display }}</span>
-      {% endif %}
+      <ul class="bg-secondary py-1">
+	{% for specialty in submission.specialties.all %}
+	  <li><small>{{ specialty }}</small></li>
+	{% endfor %}
+      </ul>
     </div>
   </div>
 
@@ -62,7 +62,19 @@
     <div class="col-md-4">
       <small class="text-muted">Submission Status</small>
       <br>
-      <span class="label label-sm label-secondary">{{ submission.get_status_display }}</span>
+      <span class="label label-sm label-secondary text-wrap">{{ submission.get_status_display }}</span>
+      {% if submission.eicrecommendations.active.first %}
+	<br>
+        <small class="text-muted">EIC Recommendation Status</small>
+        <br>
+        <span class="label label-sm label-secondary text-wrap">{{ submission.eicrecommendations.active.first.get_full_status_display }}</span>
+      {% endif %}
+      {% if submission.editorial_decision %}
+	<br>
+	<small class="text-muted">Editorial Decision Status</small>
+	<br>
+	<span class="label label-sm label-secondary text-wrap">{{ submission.editorial_decision.get_status_display }}</span>
+      {% endif %}
     </div>
   </div>
   {% if is_ed_admin and submission.has_inadequate_pool_composition %}
diff --git a/templates/bi/bullseye.html b/templates/bi/bullseye.html
new file mode 100644
index 000000000..31413d980
--- /dev/null
+++ b/templates/bi/bullseye.html
@@ -0,0 +1,6 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-bullseye" viewBox="0 0 16 16">
+  <path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"/>
+  <path d="M8 13A5 5 0 1 1 8 3a5 5 0 0 1 0 10zm0 1A6 6 0 1 0 8 2a6 6 0 0 0 0 12z"/>
+  <path d="M8 11a3 3 0 1 1 0-6 3 3 0 0 1 0 6zm0 1a4 4 0 1 0 0-8 4 4 0 0 0 0 8z"/>
+  <path d="M9.5 8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z"/>
+</svg>
-- 
GitLab