From d0f29ce0350f04606d6fa5cb7effb27ff78f601e Mon Sep 17 00:00:00 2001 From: Trent Palmer Date: Sun, 28 Mar 2021 23:27:46 -0700 Subject: [PATCH] add accessibility tweaks to templates --- audio/templates/audio/feeds.html | 28 +++++++++++++------------- audio/templates/audio/index.html | 34 ++++++++++++++++---------------- tp/templates/base_form.html | 4 ++-- tp/templates/base_navbar.html | 12 +++++------ 4 files changed, 39 insertions(+), 39 deletions(-) diff --git a/audio/templates/audio/feeds.html b/audio/templates/audio/feeds.html index e0e5dad..6da92eb 100644 --- a/audio/templates/audio/feeds.html +++ b/audio/templates/audio/feeds.html @@ -11,13 +11,13 @@
{% for i in feeds %}
-

+

{{ i.title }} -

+
- + {{ i.image_title }}

{{ i.created_on }}

@@ -25,28 +25,28 @@

Items

RSS

- license/attribution + license/attribution
- Photo {{ i.image_title }} by + Photo {{ i.image_title }} by {% if i.image_attribution_url == '' %} {{ i.image_attribution }} {% else %} - {{ i.image_attribution }} + {{ i.image_attribution }} {% endif %} - is licensed {{ i.image_license_name }} + is licensed {{ i.image_license_name }} {{ i.image_license_jurisdiction }}.
- {{ i.ebook_title }} by - {{ i.author }} - is licensed {{ i.license_name }} + {{ i.ebook_title }} by + {{ i.author }} + is licensed {{ i.license_name }} {{ i.license_jurisdiction }}. {% if i.translator != '' %} - Translated by {{ i.translator }}. + Translated by {{ i.translator }}. {% endif %} {% if i.intro_author != '' %} - Intro by {{ i.intro_author }}. + Intro by {{ i.intro_author }}. {% endif %}
@@ -58,10 +58,10 @@ {% if user == i.user %} {% endif %} diff --git a/audio/templates/audio/index.html b/audio/templates/audio/index.html index 35366df..ab202a5 100644 --- a/audio/templates/audio/index.html +++ b/audio/templates/audio/index.html @@ -23,21 +23,21 @@ {% if user.is_authenticated %} {% if view == 'feed' %} {% endif %} {% endif %} {% for j in episodes %}
-

+

{{ j.episode_number }}. {{ j.title }} -

+
- + {{ j.image_title }}

{{ j.pub_date }}

@@ -48,30 +48,30 @@ {% endif %}

RSS

- license/attribution + license/attribution
- Photo {{ j.image_title }} by + Photo {{ j.image_title }} by {% if j.image_attribution_url == '' %} {{ j.image_attribution }} {% else %} - {{ j.image_attribution }} + {{ j.image_attribution }} {% endif %} - is licensed {{ j.image_license_name }} + is licensed {{ j.image_license_name }} {{ j.image_license_jurisdiction }}.
- {{ j.feed.ebook_title }} by - {{ j.feed.author }} - is licensed {{ j.feed.license_name }} + {{ j.feed.ebook_title }} by + {{ j.feed.author }} + is licensed {{ j.feed.license_name }} {{ j.feed.license_jurisdiction }}. {% if j.feed.translator != '' %} - Translated by {{ j.feed.translator }}. + Translated by {{ j.feed.translator }}. {% endif %} {% if j.feed.intro_author != '' %} - Intro by {{ j.feed.intro_author }}. + Intro by {{ j.feed.intro_author }}. {% endif %}
@@ -86,11 +86,11 @@ {% if user == j.user %}
{% if view != 'feed' %} {% endif %}
@@ -101,7 +101,7 @@ {% endfor %} {% if is_episode %}
- More from {{ feed.title }}? + More from {{ feed.title }}?
{% endif %}
diff --git a/tp/templates/base_form.html b/tp/templates/base_form.html index 33e74b2..9c25f00 100644 --- a/tp/templates/base_form.html +++ b/tp/templates/base_form.html @@ -61,8 +61,8 @@
{% endif %} {% if request.path == login_url %} -

Forgot Password? Reset Password

-

Need an account? Register

+

Forgot Password? Reset Password

+

Need an account? Register

{% endif %}
diff --git a/tp/templates/base_navbar.html b/tp/templates/base_navbar.html index c9f7f73..c910849 100644 --- a/tp/templates/base_navbar.html +++ b/tp/templates/base_navbar.html @@ -6,14 +6,14 @@