From d608f0278d8483682b32bcb394b58ee9ff59f00b Mon Sep 17 00:00:00 2001 From: Carlin MacKenzie Date: Tue, 19 Mar 2024 16:40:57 +0100 Subject: [PATCH] bug: add missing s --- invenio_theme/templates/semantic-ui/invenio_theme/401.html | 2 ++ invenio_theme/templates/semantic-ui/invenio_theme/403.html | 2 ++ invenio_theme/templates/semantic-ui/invenio_theme/404.html | 2 ++ invenio_theme/templates/semantic-ui/invenio_theme/429.html | 2 ++ invenio_theme/templates/semantic-ui/invenio_theme/500.html | 2 ++ .../templates/semantic-ui/invenio_theme/page_settings.html | 2 ++ 6 files changed, 12 insertions(+) diff --git a/invenio_theme/templates/semantic-ui/invenio_theme/401.html b/invenio_theme/templates/semantic-ui/invenio_theme/401.html index ed84fda1..dce58770 100644 --- a/invenio_theme/templates/semantic-ui/invenio_theme/401.html +++ b/invenio_theme/templates/semantic-ui/invenio_theme/401.html @@ -9,6 +9,8 @@ {% extends config.THEME_ERROR_TEMPLATE %} +{%- set title = _("Unauthorized") %} + {% block message %} <h1><i class="bolt icon"></i> {{_('Unauthorized')}}</h1> <p>{{_('You need to be authenticated to view this page.')}}</p> diff --git a/invenio_theme/templates/semantic-ui/invenio_theme/403.html b/invenio_theme/templates/semantic-ui/invenio_theme/403.html index d6242553..652da816 100644 --- a/invenio_theme/templates/semantic-ui/invenio_theme/403.html +++ b/invenio_theme/templates/semantic-ui/invenio_theme/403.html @@ -9,6 +9,8 @@ {% extends config.THEME_ERROR_TEMPLATE %} +{%- set title = _("Permission required") %} + {% block message %} <h1><i class="bolt icon"></i> {{_('Permission required')}}</h1> <p>{{_('You do not have sufficient permissions to view this page.')}}</p> diff --git a/invenio_theme/templates/semantic-ui/invenio_theme/404.html b/invenio_theme/templates/semantic-ui/invenio_theme/404.html index ed4a4c6a..05964481 100644 --- a/invenio_theme/templates/semantic-ui/invenio_theme/404.html +++ b/invenio_theme/templates/semantic-ui/invenio_theme/404.html @@ -9,6 +9,8 @@ {% extends config.THEME_ERROR_TEMPLATE %} +{%- set title = _("Page not found") %} + {% block message %} <h1><i class="bolt icon"></i> {{_('Page not found')}}</h1> <p>{{_('The page you are looking for could not be found.')}}</p> diff --git a/invenio_theme/templates/semantic-ui/invenio_theme/429.html b/invenio_theme/templates/semantic-ui/invenio_theme/429.html index f6d1d607..7991880b 100644 --- a/invenio_theme/templates/semantic-ui/invenio_theme/429.html +++ b/invenio_theme/templates/semantic-ui/invenio_theme/429.html @@ -9,6 +9,8 @@ {% extends config.THEME_ERROR_TEMPLATE %} +{%- set title = _("Too many requests") %} + {% block message %} <h1><i class="bolt icon"></i> {{_('Too many requests')}}</h1> <p>{{_('You have made too many consecutive requests, please try again later.')}}</p> diff --git a/invenio_theme/templates/semantic-ui/invenio_theme/500.html b/invenio_theme/templates/semantic-ui/invenio_theme/500.html index 545502db..3829124a 100644 --- a/invenio_theme/templates/semantic-ui/invenio_theme/500.html +++ b/invenio_theme/templates/semantic-ui/invenio_theme/500.html @@ -9,6 +9,8 @@ {% extends config.THEME_ERROR_TEMPLATE %} +{%- set title = _("Internal server error") %} + {% block message %} <h1><i class="bolt icon"></i> {{_('Internal server error')}}</h1> {% if g.sentry_event_id %} diff --git a/invenio_theme/templates/semantic-ui/invenio_theme/page_settings.html b/invenio_theme/templates/semantic-ui/invenio_theme/page_settings.html index 52521c1d..067a5d31 100644 --- a/invenio_theme/templates/semantic-ui/invenio_theme/page_settings.html +++ b/invenio_theme/templates/semantic-ui/invenio_theme/page_settings.html @@ -11,6 +11,8 @@ {%- extends config.THEME_BASE_TEMPLATE %} +{%- set title = _("Settings") %} + {%- block page_body scoped %} <div class="ui container fluid page-subheader-outer compact ml-0-mobile mr-0-mobile">