From 9980321bc9b88381641f36cca82d968442bb64c0 Mon Sep 17 00:00:00 2001 From: PouyaMohseni Date: Fri, 14 Nov 2025 22:31:47 -0500 Subject: [PATCH 1/2] fix(detail.html): format aliases and remove source for labels - display aliases using nested rows - show verification status and action options for aliases - remove source information as part of improvements related to #443 resolves #423, resolves #420 --- .../VIM/templates/instruments/detail.html | 142 +++++++++++++----- 1 file changed, 102 insertions(+), 40 deletions(-) diff --git a/web-app/django/VIM/templates/instruments/detail.html b/web-app/django/VIM/templates/instruments/detail.html index a3e5f3b6..dd374963 100644 --- a/web-app/django/VIM/templates/instruments/detail.html +++ b/web-app/django/VIM/templates/instruments/detail.html @@ -65,12 +65,6 @@

{{ active_instrument_label.name }}

Name - - Alias - - - Source - {% if user.is_authenticated %} Verification Status @@ -82,6 +76,15 @@

{{ active_instrument_label.name }}

{% endif %} + {% if user.is_authenticated %} + + Alias + + {% else %} + + Alias + + {% endif %} {% if user.is_authenticated %} Actions @@ -105,21 +108,6 @@

{{ active_instrument_label.name }}

- -
-
- {% for alias in names.aliases %} - {{ alias.name }} - {% endfor %} -
-
- - -
- {{ names.label.source_name }} -
- {% if user.is_authenticated %}
@@ -135,8 +123,48 @@

{{ active_instrument_label.name }}

{% endif %} + +
+ {% for alias in names.aliases %} +
+
+ {{ alias.name }} + {% if user.is_authenticated %} +
+ {% if alias.verification_status == 'verified' %} + Verified + {% elif alias.verification_status == 'unverified' %} + Unverified + {% elif alias.verification_status == 'rejected' %} + Rejected + {% else %} + Under Review + {% endif %} +
+ {% endif %} +
+ {% if user.is_authenticated %} + +
+ +
+ {% endif %} +
+ {% endfor %} +
+ {% if user.is_authenticated %} +
- -
-
Alias
-
- {% for alias in names.aliases %} - {{ alias.name }} - {% endfor %} -
-
- -
-
Source
- {{ names.label.source_name }} -
{% if user.is_authenticated %} -
+
Verification Status {{ active_instrument_label.name }}
{% endif %} + +
+ {% if names.aliases %} +
Alias
+
+
+ {% for alias in names.aliases %} +
+
+ {{ alias.name }} + {% if user.is_authenticated %} +
+ {% if alias.verification_status == 'verified' %} + Verified + {% elif alias.verification_status == 'unverified' %} + Unverified + {% elif alias.verification_status == 'rejected' %} + Rejected + {% else %} + Under Review + {% endif %} +
+ {% endif %} +
+ {% if user.is_authenticated %} + +
+ +
+ {% endif %} +
+ {% endfor %} +
+
+ {% endif %} +
+ {% if user.is_authenticated %} -
+ +
@@ -268,7 +329,8 @@

{{ active_instrument_label.name }}

class="rounded mw-50" /> View image in full size + target="_blank">View image in full + size
From 84a995eb004714ff808b3cad834411a4c656be56 Mon Sep 17 00:00:00 2001 From: PouyaMohseni Date: Thu, 11 Dec 2025 18:04:03 -0500 Subject: [PATCH 2/2] fix: show alias list in one line seperated by `|` when the user is not logged in --- .../VIM/templates/instruments/detail.html | 139 +++++++++--------- 1 file changed, 73 insertions(+), 66 deletions(-) diff --git a/web-app/django/VIM/templates/instruments/detail.html b/web-app/django/VIM/templates/instruments/detail.html index dd374963..edbb9a06 100644 --- a/web-app/django/VIM/templates/instruments/detail.html +++ b/web-app/django/VIM/templates/instruments/detail.html @@ -123,44 +123,51 @@

{{ active_instrument_label.name }}

{% endif %} - -
+ + {% if user.is_authenticated %} {% for alias in names.aliases %} -
+
{{ alias.name }} - {% if user.is_authenticated %} -
- {% if alias.verification_status == 'verified' %} - Verified - {% elif alias.verification_status == 'unverified' %} - Unverified - {% elif alias.verification_status == 'rejected' %} - Rejected - {% else %} - Under Review - {% endif %} -
- {% endif %} -
- {% if user.is_authenticated %} - -
- +
+ {% if alias.verification_status == 'verified' %} + Verified + {% elif alias.verification_status == 'unverified' %} + Unverified + {% elif alias.verification_status == 'rejected' %} + Rejected + {% else %} + Under Review + {% endif %}
- {% endif %} +
+
+ +
{% endfor %} -
+ {% else %} +
+
+ {% for alias in names.aliases %} + + {{ alias.name }} + {% if not forloop.last %}|{% endif %} + + {% endfor %} +
+
+ {% endif %} {% if user.is_authenticated %} @@ -233,44 +240,44 @@

{{ active_instrument_label.name }}

{% if names.aliases %}
Alias
-
-
- {% for alias in names.aliases %} -
+
+ {% for alias in names.aliases %} + {% if user.is_authenticated %} +
{{ alias.name }} - {% if user.is_authenticated %} -
- {% if alias.verification_status == 'verified' %} - Verified - {% elif alias.verification_status == 'unverified' %} - Unverified - {% elif alias.verification_status == 'rejected' %} - Rejected - {% else %} - Under Review - {% endif %} -
- {% endif %} -
- {% if user.is_authenticated %} - -
- +
+ {% if alias.verification_status == 'verified' %} + Verified + {% elif alias.verification_status == 'unverified' %} + Unverified + {% elif alias.verification_status == 'rejected' %} + Rejected + {% else %} + Under Review + {% endif %}
- {% endif %} +
+ +
+ +
- {% endfor %} -
+ {% else %} + {{ alias.name }} + {% if not forloop.last %}|{% endif %} + + {% endif %} + {% endfor %}
{% endif %}