Skip to content

Commit

Permalink
Merge pull request #32 from datopian/fix/accesbility-pages
Browse files Browse the repository at this point in the history
Fix accebility alert issues
  • Loading branch information
demenech authored Jan 6, 2025
2 parents 68712b5 + 19ceddc commit 5fd9881
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion ckanext/nhs/templates/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
{% block header_site_navigation %}
<nav class="section navigation" role="navigation" aria-label="Main Menu">
<ul class="nav nav-pills">
<li><a href="{{ h.url_for('home.index') }}#home-page" title="Go to Home">Home</a></li>
<li><a href="{{ h.url_for('home.index') }}#home-page" title="Go to Home"><h1>Home</h1></a></li>
<li><a href={{h.url_for( 'search')}} title="Go to Data">Data</a></li>
<li><a href={{h.url_for( 'foi-responses')}} title="FOI DATA">FOI Responses</a></li>
<li><a href="/news" title="Go to News">News</a></li>
Expand Down
2 changes: 1 addition & 1 deletion ckanext/nhs/templates/package/resource_read.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
{% endblock %}

{% block resource_content %}
{% block resource_read_title %}<h1 class="page-heading">{{ res.title or res.name | truncate(50) }}</h1>{% endblock %}
{% block resource_read_title %}<h2 class="page-heading">{{ res.title or res.name | truncate(50) }}</h2>{% endblock %}
<div class="prose notes" property="rdfs:label">
{% if res.description %}
{{ h.render_markdown(res.description) }}
Expand Down
8 changes: 0 additions & 8 deletions ckanext/nhs/templates/package/snippets/resource_item.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,6 @@
</a>
<ul class="dropdown-menu">
{% block resource_item_explore_links %}
{% if h.API_enabled(pkg) %}
<li>
<a href="{{ url }}">
<i class="fa fa-bar-chart-o"></i>
{{ _('Preview') }}
</a>
</li>
{% endif %}
<li>
<a href="{{ res.url }}" class="resource-url-analytics" target="_blank">
<i class="fa fa-file"></i>
Expand Down
2 changes: 1 addition & 1 deletion ckanext/nhs/templates/snippets/organization.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ <h1 class="heading">{{ organization.title or organization.name }}
<p>
{{ h.markdown_extract(organization.description, 180) }}
{% set read_more_url = h.url_for('theme_about', id=organization.name, ) %}
<a href="{{ read_more_url }}" aria-label="Read more about the Theme">read more</a>
<a href="{{ read_more_url }}" aria-label="Read more about the Theme">read full version of description</a>
</p>
{% else %}
<p class="empty">{{ _('There is no description for this theme') }}</p>
Expand Down

0 comments on commit 5fd9881

Please sign in to comment.