Skip to content

Commit

Permalink
Updated templates to co-inside with CKAN upgrade changes
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-daly committed Jan 10, 2025
1 parent 0723614 commit 8a233a5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
6 changes: 4 additions & 2 deletions ckanext/ukdstheme/templates/footer.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{% ckan_extends %}
<footer class="site-footer">
<div class="container">
{% block footer_content %}
<div class="row">
<div class="col-md-8 footer-links">
Expand Down Expand Up @@ -30,4 +31,5 @@
</div>
</div>
{% endblock %}

</div>
</footer>
10 changes: 5 additions & 5 deletions ckanext/ukdstheme/templates/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{%- block page -%}

{% block skip %}
<div class="sr-only sr-only-focusable"><a href="#content">{{ _('Skip over header') }}</a><a href="#mainblock">{{ _('Skip to main section') }}</a></div>
<div class="visually-hidden-focusable"><a href="#content">{{ _('Skip to main content') }}</a></div>
{% endblock %}

{#
Expand All @@ -23,8 +23,8 @@
{% block flash %}
<div class="flash-messages">
{% block flash_inner %}
{% for message in h.get_flashed_messages() | list %}
<div class="alert fade in {{ message.category }}">
{% for category, message in h.get_flashed_messages(with_categories=true) %}
<div class="alert alert-dismissible fade show {{ category }}">
{{ h.literal(message) }}
</div>
{% endfor %}
Expand Down Expand Up @@ -54,7 +54,7 @@
{% endblock %}

{% block secondary %}
<aside class="secondary col-sm-3">
<aside class="secondary col-md-3">
{#
The secondary_content block can be used to add content to the
sidebar of the page. This is the main block that is likely to be
Expand All @@ -72,7 +72,7 @@ <h2>A sidebar item</h2>
{% endblock %}

{% block primary %}
<div class="primary col-sm-9 col-xs-12" role="main" id="mainblock">
<div class="primary col-md-9 col-xs-12" role="main">
{#
The primary_content block can be used to add content to the page.
This is the main block that is likely to be used within a template.
Expand Down

0 comments on commit 8a233a5

Please sign in to comment.