From 3dd134f1322a609855f896ca730fa231e26250ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniele=20Vigan=C3=B2?= Date: Sat, 18 Jan 2025 23:02:55 +0100 Subject: [PATCH] Improve freelance tag --- ram/portal/templates/cards/company.html | 16 ++++++---------- ram/portal/templates/cards/consist.html | 10 ++++++---- ram/portal/templates/cards/roster.html | 10 ++++++---- ram/portal/templates/consist.html | 10 ++++++---- ram/portal/templates/rollingstock.html | 20 ++++++++++++-------- 5 files changed, 36 insertions(+), 30 deletions(-) diff --git a/ram/portal/templates/cards/company.html b/ram/portal/templates/cards/company.html index 04307b8..7b4d171 100644 --- a/ram/portal/templates/cards/company.html +++ b/ram/portal/templates/cards/company.html @@ -7,10 +7,12 @@ - - {% if d.item.freelance %} - - {% endif %} + @@ -32,12 +34,6 @@ - {% if d.item.freelance %} - - - - - {% endif %}
CompanyFreelance + Company + {% if d.item.freelance %} + Freelance + {% endif %} +
Country {{ d.item.country }} {{ d.item.country.name }}
NotesA freelance company
diff --git a/ram/portal/templates/cards/consist.html b/ram/portal/templates/cards/consist.html index 85bc81e..aa632d5 100644 --- a/ram/portal/templates/cards/consist.html +++ b/ram/portal/templates/cards/consist.html @@ -24,10 +24,12 @@ - - {% if d.item.company.freelance %} - - {% endif %} + diff --git a/ram/portal/templates/cards/roster.html b/ram/portal/templates/cards/roster.html index 3936cdb..4b7785d 100644 --- a/ram/portal/templates/cards/roster.html +++ b/ram/portal/templates/cards/roster.html @@ -22,10 +22,12 @@
ConsistFreelance + Consist + {% if d.item.company.freelance %} + Freelance + {% endif %} +
- - {% if d.item.rolling_class.company.freelance %} - - {% endif %} + diff --git a/ram/portal/templates/consist.html b/ram/portal/templates/consist.html index 33d48c4..f7552af 100644 --- a/ram/portal/templates/consist.html +++ b/ram/portal/templates/consist.html @@ -79,10 +79,12 @@
Rolling stockFreelance + Rolling stock + {% if d.item.rolling_class.company.freelance %} + Freelance + {% endif %} +
- - {% if consist.company.freelance %} - - {% endif %} + diff --git a/ram/portal/templates/rollingstock.html b/ram/portal/templates/rollingstock.html index f3d0b39..ef85902 100644 --- a/ram/portal/templates/rollingstock.html +++ b/ram/portal/templates/rollingstock.html @@ -73,10 +73,12 @@
ConsistFreelance + Consist + {% if consist.company.freelance %} + Freelance + {% endif %} +
- - {% if company.freelance %} - - {% endif %} + @@ -290,10 +292,12 @@
Rolling stockFreelance + Rolling stock + {% if company.freelance %} + Freelance + {% endif %} +
- - {% if company.freelance %} - - {% endif %} +
Company dataFreelance + Company data + {% if company.freelance %} + Freelance + {% endif %} +