From 8c15441fe5e782c39cbf99557436742f89579040 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniele=20Vigan=C3=B2?= Date: Fri, 22 Sep 2023 14:30:06 +0200 Subject: [PATCH] More html cleanup to match W3c --- ram/portal/static/css/main.css | 4 ++++ ram/portal/templates/base.html | 4 ++-- ram/portal/templates/cards.html | 6 +++--- ram/portal/templates/companies.html | 10 +++++----- ram/portal/templates/consist.html | 2 +- ram/portal/templates/consists.html | 4 ++-- ram/portal/templates/home.html | 2 +- ram/portal/templates/includes/login.html | 2 +- ram/portal/templates/manufacturers.html | 6 +++--- ram/portal/templates/rollingstock.html | 18 +++++++++--------- ram/portal/templates/scales.html | 8 ++++---- ram/portal/templates/types.html | 4 ++-- ram/ram/__init__.py | 2 +- 13 files changed, 38 insertions(+), 34 deletions(-) diff --git a/ram/portal/static/css/main.css b/ram/portal/static/css/main.css index df6847d..aad3c5c 100644 --- a/ram/portal/static/css/main.css +++ b/ram/portal/static/css/main.css @@ -36,3 +36,7 @@ a.badge, a.badge:hover { #footer > p { display: inline; } + +th.th-35 { + width: 35%; +} diff --git a/ram/portal/templates/base.html b/ram/portal/templates/base.html index cd6a262..572a3e5 100644 --- a/ram/portal/templates/base.html +++ b/ram/portal/templates/base.html @@ -125,8 +125,8 @@
- - + + {% endif %} {% endif %} @@ -78,7 +78,7 @@ - Decoder + Decoder {{ d.decoder }} diff --git a/ram/portal/templates/companies.html b/ram/portal/templates/companies.html index 89a0d98..448c5b0 100644 --- a/ram/portal/templates/companies.html +++ b/ram/portal/templates/companies.html @@ -17,25 +17,25 @@ {% if d.logo %} - Logo + Logo {% endif %} - Name + Name {{ d.extended_name }} - Abbreviation + Abbreviation {{ d.name }} - Country + Country {{ d.country.name }} {{ d.country }} {% if d.freelance %} - Notes + Notes A freelance company {% endif %} diff --git a/ram/portal/templates/consist.html b/ram/portal/templates/consist.html index 1b5fd5f..9fefaca 100644 --- a/ram/portal/templates/consist.html +++ b/ram/portal/templates/consist.html @@ -82,7 +82,7 @@ - Company + Company {{ consist.company }} diff --git a/ram/portal/templates/consists.html b/ram/portal/templates/consists.html index 6e8a3d9..d4125ce 100644 --- a/ram/portal/templates/consists.html +++ b/ram/portal/templates/consists.html @@ -36,12 +36,12 @@ {% if d.address %} - Address + Address {{ d.address }} {% endif %} - Company + Company {{ d.company }} diff --git a/ram/portal/templates/home.html b/ram/portal/templates/home.html index fc48ce7..9876353 100644 --- a/ram/portal/templates/home.html +++ b/ram/portal/templates/home.html @@ -1,5 +1,5 @@ {% extends "roster.html" %} {% block header %} -

{{ site_conf.about | safe }}

+
{{ site_conf.about | safe }}
{% endblock %} diff --git a/ram/portal/templates/includes/login.html b/ram/portal/templates/includes/login.html index b654159..35ec22a 100644 --- a/ram/portal/templates/includes/login.html +++ b/ram/portal/templates/includes/login.html @@ -22,7 +22,7 @@ {% endif %}