mirror of
https://github.com/Cian-H/invenio-theme-iform.git
synced 2025-12-22 20:51:58 +00:00
Compare commits
2 Commits
2025.6.6.2
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| ab8a357137 | |||
| 6cba9a6d2b |
@@ -8,4 +8,4 @@
|
||||
|
||||
"""Metadata for this python module."""
|
||||
|
||||
__version__ = "2025.6.6.2"
|
||||
__version__ = "2025.6.6.4"
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
<title>{{ title }}</title>
|
||||
{%- endblock head_title %}
|
||||
{%- block head_links %}
|
||||
<link rel="shortcut icon" href="{{ url_for('invenio_theme_iform.static', filename='favicon.ico') }}" />
|
||||
<link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}" />
|
||||
{%- if keywords %}<link rel="canonical" href="{{ canonical_url }}" />{% endif %}
|
||||
{%- block head_links_langs %}
|
||||
{%- if alternate_urls %}
|
||||
@@ -58,7 +58,7 @@
|
||||
<link
|
||||
rel="apple-touch-icon-precomposed"
|
||||
sizes="{{ size }}x{{ size }}"
|
||||
href="{{ url_for('invenio_theme_iform.static', filename=icon_name) }}"
|
||||
href="{{ url_for('static', filename=icon_name) }}"
|
||||
/>
|
||||
{%- endfor %}
|
||||
{%- endblock head_apple_icons %}
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
Log in with
|
||||
{{ config.SSO_SAML_IDPS[name]['title']|default("SAML", true) }}
|
||||
<img
|
||||
src="{{ url_for('invenio_theme_iform.static', filename=config.INVENIO_THEME_IFORM_ICON) }}"
|
||||
src="{{ url_for('static', filename=config.INVENIO_THEME_IFORM_ICON) }}"
|
||||
height="20px"
|
||||
/>
|
||||
</a>
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
>
|
||||
<span style="font-size: 18px;">Sign up with I-Form</span>
|
||||
<img
|
||||
src="{{ url_for('invenio_theme_iform.static', filename=config.INVENIO_THEME_IFORM_ICON) }}"
|
||||
src="{{ url_for('static', filename=config.INVENIO_THEME_IFORM_ICON) }}"
|
||||
height="20px"
|
||||
/>
|
||||
</a>
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
{%- endblock head_title %}
|
||||
|
||||
{%- block head_links %}
|
||||
<link rel="shortcut icon" href="{{ url_for('inveino_theme_iform.static', filename='favicon.ico') }}" />
|
||||
<link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}" />
|
||||
|
||||
{%- if keywords %}
|
||||
<link rel="canonical" href="{{ canonical_url }}" />
|
||||
|
||||
@@ -132,7 +132,7 @@
|
||||
title="invenioRDM"
|
||||
>
|
||||
<img
|
||||
src="{{ url_for('invenio_theme_iform.static', filename='images/inveniordm-tail.svg') }}"
|
||||
src="{{ url_for('static', filename='images/inveniordm-tail.svg') }}"
|
||||
alt="InvenioRDM logo"
|
||||
style="display: block; height: 90px; margin-top: 8px;"
|
||||
/>
|
||||
@@ -148,7 +148,7 @@
|
||||
title="Science Foundation Ireland"
|
||||
>
|
||||
<img
|
||||
src="{{ url_for('invenio_theme_iform.static', filename='images/SFI_logo.png') }}"
|
||||
src="{{ url_for('static', filename='images/SFI_logo.png') }}"
|
||||
alt="Science Foundation Ireland"
|
||||
style="display: block; height: auto; margin-top: 15px; width: 230px;"
|
||||
/>
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<a href="{{ creators.identifiers.orcid|pid_url('orcid') }}" target="_blank"
|
||||
><img
|
||||
class="inline-orcid"
|
||||
src="{{ url_for('invenio_theme_iform.static', filename='extra/orcid.png') }}"
|
||||
src="{{ url_for('static', filename='extra/orcid.png') }}"
|
||||
/></a>
|
||||
{%- endif %}
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
<img
|
||||
width="400px"
|
||||
alt="Research Results"
|
||||
src="{{ url_for('invenio_theme_iform.static', filename='images/diamond.svg') }}"
|
||||
src="{{ url_for('static', filename='images/diamond.svg') }}"
|
||||
/>
|
||||
</a>
|
||||
<div class="ui right floated text">
|
||||
@@ -48,7 +48,7 @@
|
||||
<img
|
||||
width="400px"
|
||||
alt="Communities"
|
||||
src="{{ url_for('invenio_theme_iform.static', filename='images/group-discussion.svg') }}"
|
||||
src="{{ url_for('static', filename='images/group-discussion.svg') }}"
|
||||
/>
|
||||
</a>
|
||||
<div>Overview: Description of Communities</div>
|
||||
@@ -61,7 +61,7 @@
|
||||
<img
|
||||
width="400px"
|
||||
alt="Requests"
|
||||
src="{{ url_for('invenio_theme_iform.static', filename='images/umbrella.svg') }}"
|
||||
src="{{ url_for('static', filename='images/umbrella.svg') }}"
|
||||
/>
|
||||
</a>
|
||||
<div>Overview: Description of Requests</div>
|
||||
@@ -112,7 +112,7 @@
|
||||
<img
|
||||
width="400px"
|
||||
alt="Research Results"
|
||||
src="{{ url_for('invenio_theme_iform.static', filename='images/diamond.svg') }}"
|
||||
src="{{ url_for('static', filename='images/diamond.svg') }}"
|
||||
/>
|
||||
</div>
|
||||
<div class="ui right floated text">
|
||||
@@ -143,7 +143,7 @@
|
||||
<img
|
||||
width="400px"
|
||||
alt="Open Educational Resources"
|
||||
src="{{ url_for('invenio_theme_iform.static', filename='images/play.svg') }}"
|
||||
src="{{ url_for('static', filename='images/play.svg') }}"
|
||||
/>
|
||||
</a>
|
||||
<div>Overview: Description for open educational resources</div>
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
"""invenio module for I-Form theme."""
|
||||
|
||||
import traceback
|
||||
from functools import wraps
|
||||
from typing import Dict
|
||||
|
||||
@@ -121,6 +122,10 @@ def default_error_handler(e: Exception):
|
||||
# - `e`, the passed-in exception
|
||||
# to get proxied-to objects: `flask.request._get_current_object()`
|
||||
|
||||
msg = f"default_error_handler of invenio-theme-iform captured following error type: {
|
||||
type(e)
|
||||
} with message {e} and stack trace {traceback.format_exc()}"
|
||||
current_app.logger.error(msg)
|
||||
return render_template(current_app.config["THEME_500_TEMPLATE"]), 500
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user