Formatted jinja templates with djlint

This commit is contained in:
2025-05-02 15:06:54 +01:00
parent 35a17bde25
commit a4eae3cd87
17 changed files with 856 additions and 995 deletions

View File

@@ -5,10 +5,10 @@
modify it under the terms of the MIT License; see LICENSE file for more modify it under the terms of the MIT License; see LICENSE file for more
details. details.
#} #}
{% extends config.THEME_ERROR_TEMPLATE %} {% extends config.THEME_ERROR_TEMPLATE %}
{% block message %} {% block message %}
<h1><i class="bolt icon"></i> {{_("Locked")}}</h1> <h1>
<p>{{_("The resource that is being accessed is locked.")}}</p> <i class="bolt icon"></i> {{ _("Locked") }}
</h1>
<p>{{ _("The resource that is being accessed is locked.") }}</p>
{% endblock message %} {% endblock message %}

View File

@@ -5,9 +5,10 @@
modify it under the terms of the MIT License; see LICENSE file for more modify it under the terms of the MIT License; see LICENSE file for more
details. details.
#} #}
<!DOCTYPE html> <!DOCTYPE html>
<html{% if html_css_classes %} class="{{ html_css_classes|join(' ') }}"{% endif %} lang="{{ current_i18n.locale.language|safe }}" dir="{{ current_i18n.locale.text_direction }}"> <html {% if html_css_classes %}class="{{ html_css_classes|join(" ") }}"{% endif %}
lang="{{ current_i18n.locale.language|safe }}"
dir="{{ current_i18n.locale.text_direction }}">
<head> <head>
{%- block head %} {%- block head %}
{%- block head_meta %} {%- block head_meta %}
@@ -18,32 +19,36 @@
{%- if keywords %}<meta name="keywords" content="{{ keywords }}" />{% endif %} {%- if keywords %}<meta name="keywords" content="{{ keywords }}" />{% endif %}
{%- if config.get('THEME_GOOGLE_SITE_VERIFICATION', None) %} {%- if config.get('THEME_GOOGLE_SITE_VERIFICATION', None) %}
{%- for google_id in config.THEME_GOOGLE_SITE_VERIFICATION %} {%- for google_id in config.THEME_GOOGLE_SITE_VERIFICATION %}
<meta name="google-site-verification" content="{{google_id}}"/> <meta name="google-site-verification" content="{{ google_id }}" />
{%- endfor %} {%- endfor %}
{%- endif %} {%- endif %}
{%- endblock head_meta %} {%- endblock head_meta %}
{%- block head_title %} {%- block head_title %}
{%- set title = title or _(config.THEME_SITENAME) or _('Invenio') %} {%- set title = title or _(config.THEME_SITENAME) or _('Invenio') %}
<title>{{title}}</title> <title>{{ title }}</title>
{%- endblock head_title %} {%- endblock head_title %}
{%- block head_links %} {%- block head_links %}
<link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}"/> <link rel="shortcut icon"
{%- if keywords %}<link rel="canonical" href="{{ canonical_url }}"/>{% endif %} href="{{ url_for('static', filename='favicon.ico') }}" />
{%- if keywords %}<link rel="canonical" href="{{ canonical_url }}" />{% endif %}
{%- block head_links_langs %} {%- block head_links_langs %}
{%- if alternate_urls %} {%- if alternate_urls %}
{%- for alt_ln, alternate_url in alternate_urls.items() %} {%- for alt_ln, alternate_url in alternate_urls.items() %}
<link rel="alternate" hreflang="{{ alt_ln }}" href="{{ alternate_url }}"/> <link rel="alternate" hreflang="{{ alt_ln }}" href="{{ alternate_url }}" />
{%- endfor %} {%- endfor %}
{%- endif %} {%- endif %}
{%- endblock %} {%- endblock %}
{%- block head_apple_icons %} {%- block head_apple_icons %}
{%- for size in [144, 114, 72, 57] %} {%- for size in [144, 114, 72, 57] %}
{%- set icon_name = 'apple-touch-icon-%d-precomposed.png' | format(size) %} {%- set icon_name = 'apple-touch-icon-%d-precomposed.png' | format(size) %}
<link rel="apple-touch-icon-precomposed" sizes="{{ size }}x{{ size }}" href="{{ url_for('static', filename=icon_name) }}"/> <link rel="apple-touch-icon-precomposed"
sizes="{{ size }}x{{ size }}"
href="{{ url_for('static', filename=icon_name) }}" />
{%- endfor %} {%- endfor %}
{%- endblock head_apple_icons %} {%- endblock head_apple_icons %}
{%- endblock head_links %} {%- endblock head_links %}
{%- block header %}{% endblock header %} {%- block header %}
{% endblock header %}
{%- block css %} {%- block css %}
{{ webpack['theme.css'] }} {{ webpack['theme.css'] }}
{{ webpack['invenio-theme-tugraz-theme.css'] }} {{ webpack['invenio-theme-tugraz-theme.css'] }}
@@ -55,11 +60,11 @@
{%- endblock css %} {%- endblock css %}
{%- endblock head %} {%- endblock head %}
</head> </head>
<body ng-csp {% if body_css_classes %} class="{{ body_css_classes|join(' ') }}"{% endif %}{% if g.ln %} lang="{{ g.ln.split('_', 1)[0]|safe }}"{% if rtl_direction %} {{ rtl_direction|safe }}{% endif %}{% endif %} itemscope itemtype="http://schema.org/WebPage" data-spy="scroll" data-target=".scrollspy-target"> <body ng-csp {% if body_css_classes %}class="{{ body_css_classes|join(" ") }}"{% endif %}{% if g.ln %} lang="{{ g.ln.split('_', 1)[0] |safe }}"{% if rtl_direction %} {{ rtl_direction|safe }}{% endif %}{% endif %} itemscope itemtype="http://schema.org/WebPage" data-spy="scroll" data-target=".scrollspy-target">
{% if not config.THEME_TUGRAZ_PRODUCTION %} {% if not config.THEME_TUGRAZ_PRODUCTION %}
<div class="ui sticky test-instance"> <div class="ui sticky test-instance">
<h4>{{_ ("Test Instance") }}</h4> <h4>{{ _ ("Test Instance") }}</h4>
<p>{{_ ("This is the test instance of the TU Graz Repository.") }}</p> <p>{{ _ ("This is the test instance of the TU Graz Repository.") }}</p>
</div> </div>
{% endif %} {% endif %}
{%- block body %} {%- block body %}
@@ -69,31 +74,28 @@
<![endif]--> <![endif]-->
{%- endblock browserupgrade %} {%- endblock browserupgrade %}
{%- block body_inner %} {%- block body_inner %}
{%- block navbar_header %} {%- block navbar_header %}
{%- include "invenio_theme_tugraz/navbar.html" %} {%- include "invenio_theme_tugraz/navbar.html" %}
<!--Flask messages for accounts--> <!--Flask messages for accounts-->
{%- block flashmessages %} {%- block flashmessages %}
{%- from "invenio_theme/macros/messages.html" import flashed_messages with context -%} {%- from "invenio_theme/macros/messages.html" import flashed_messages with context -%}
{{ flashed_messages() }} {{ flashed_messages() }}
{%- endblock %} {%- endblock %}
{%- endblock navbar_header %} {%- endblock navbar_header %}
{# {#
{%- block page_header %} {%- block page_header %}
{% include config.THEME_HEADER_TEMPLATE %} {% include config.THEME_HEADER_TEMPLATE %}
{%- endblock page_header %} {%- endblock page_header %}
#} #}
{%- block page_body %} {%- block page_body %}
{% include "invenio_theme/body.html" %} {% include "invenio_theme/body.html" %}
{%- endblock page_body %} {%- endblock page_body %}
{%- endblock body_inner %} {%- endblock body_inner %}
{%- block javascript %} {%- block javascript %}
{% include config.THEME_JAVASCRIPT_TEMPLATE %} {% include config.THEME_JAVASCRIPT_TEMPLATE %}
{%- endblock javascript %} {%- endblock javascript %}
{%- block trackingcode %}{% include config.THEME_TRACKINGCODE_TEMPLATE %} {%- block trackingcode %}
{% include config.THEME_TRACKINGCODE_TEMPLATE %}
{%- endblock %} {%- endblock %}
{%- endblock body %} {%- endblock body %}
</body> </body>

View File

@@ -1,36 +1,26 @@
{%- if config.ACCOUNTS %} {%- if config.ACCOUNTS %}
{%- if not current_user.is_authenticated %}
{%- if not current_user.is_authenticated %} {%- if config.SECURITY_REGISTERABLE %}
<div class="short-menu-right-button">
{%- if config.SECURITY_REGISTERABLE %} <a href="{{ url_for("security.register") }}" class="no-decoration">{{ _ ("Sign up") }}</a>
<div class="short-menu-right-button"> </div>
<a href="{{ url_for('security.register') }}" class="no-decoration">
{{_ ("Sign up")}}
</a>
</div>
{%- endif %} {%- endif %}
<div class="short-menu-right-button">
<div class="short-menu-right-button"> <a href="{{ url_for_security('login', next=request.path) }}"
<a href="{{url_for_security('login', next=request.path)}}" class="no-decoration"> class="no-decoration">{{ _ ("Log in") }}</a>
{{_ ("Log in")}} </div>
</a> {%- else %}
</div> {%- if config.USERPROFILES %}
<div class="short-menu-right-button">
<a href="{{ url_for("invenio_userprofiles.profile") }}"
{%- else %} class="no-decoration">
{%- if config.USERPROFILES %}
<div class="short-menu-right-button">
<a href="{{ url_for('invenio_userprofiles.profile') }}" class="no-decoration">
<i class="user icon"></i> {{ current_user.email }} <i class="user icon"></i> {{ current_user.email }}
</a> </a>
</div> </div>
<div class="short-menu-right-button"> <div class="short-menu-right-button">
<a class="dropdown-item no-decoration" href="{{url_for_security('logout')}}"> <a class="dropdown-item no-decoration"
{{_('Sign out')}} href="{{ url_for_security("logout") }}">{{ _("Sign out") }}</a>
</a> </div>
</div> {%- endif %}
{%- endif %}
{%- endif %}
{%- endif %}
{%- endif %} {%- endif %}

View File

@@ -5,66 +5,61 @@
modify it under the terms of the MIT License; see LICENSE file for more modify it under the terms of the MIT License; see LICENSE file for more
details. details.
#} #}
{% extends config.INVENIO_THEME_TUGRAZ_ACCOUNT_BASE %} {% extends config.INVENIO_THEME_TUGRAZ_ACCOUNT_BASE %}
{% from "invenio_accounts/_macros.html" import render_field, form_errors %} {% from "invenio_accounts/_macros.html" import render_field, form_errors %}
{%- from "invenio_oauthclient/_macros.html" import oauth_button %} {%- from "invenio_oauthclient/_macros.html" import oauth_button %}
{% block page_body %} {% block page_body %}
<div class="spacer-long"></div> <div class="spacer-long"></div>
<div class="spacer-long"></div> <div class="spacer-long"></div>
<div class="ui container"> <div class="ui container">
<div class="ui centered grid padded"> <div class="ui centered grid padded">
<div class="ui padded segments large form"> <div class="ui padded segments large form">
<div class="ui login segment padded"> <div class="ui login segment padded">
<div class="divider hidden"></div> <div class="divider hidden"></div>
{%- block form_header %} {%- block form_header %}
<h3 class="ui login header">{{ _('Log in to Repository') }}</h3> <h3 class="ui login header">{{ _("Log in to Repository") }}</h3>
{%- endblock form_header %} {%- endblock form_header %}
<div class="ui divider"></div> <div class="ui divider"></div>
<!--Log in with SSO--> <!--Log in with SSO-->
{% if config.OAUTHCLIENT_REMOTE_APPS or config.SSO_SAML_IDPS %} {% if config.OAUTHCLIENT_REMOTE_APPS or config.SSO_SAML_IDPS %}
<div class="ui form"> <div class="ui form">
{% for name in config.OAUTHCLIENT_REMOTE_APPS.keys() %} {% for name in config.OAUTHCLIENT_REMOTE_APPS.keys() %}
{{ oauth_button(name, next=request.args.get('next')) }} {{ oauth_button(name, next=request.args.get('next') ) }}
{% endfor %} {% endfor %}
</div> </div>
{% for name in config.SSO_SAML_IDPS.keys() %} {% for name in config.SSO_SAML_IDPS.keys() %}
<div class="field"> <div class="field">
<a class="login-page-button ui fluid large button" href="{{ url_for('sso_saml.sso', idp=name) }}"> <a class="login-page-button ui fluid large button"
{{ href="{{ url_for('sso_saml.sso', idp=name) }}">
_('Log in with %(title)s', title=config.SSO_SAML_IDPS[name]['title']|default("SAML", true)) {{ _('Log in with %(title)s', title=config.SSO_SAML_IDPS[name]['title']|default("SAML", true) )
}} }}
<img src="{{ url_for('static', filename=config.INVENIO_THEME_TUGRAZ_ICON)}}" height="20px" /> <img src="{{ url_for('static', filename=config.INVENIO_THEME_TUGRAZ_ICON) }}"
height="20px" />
</a> </a>
</div> </div>
{% endfor %} {% endfor %}
{%- if config.ACCOUNTS_LOCAL_LOGIN_ENABLED %} {%- if config.ACCOUNTS_LOCAL_LOGIN_ENABLED %}<div class="ui horizontal divider">{{ _("Or") }}</div>{%- endif %}
<div class="ui horizontal divider">
{{ _("Or") }}
</div>
{%- endif %}
{% endif %} {% endif %}
{%- block form_outer %} {%- block form_outer %}
{%- if config.ACCOUNTS_LOCAL_LOGIN_ENABLED %} {%- if config.ACCOUNTS_LOCAL_LOGIN_ENABLED %}
{%- with form = login_user_form %} {%- with form = login_user_form %}
{%- set accordion_active = "active" if form.errors else "" %} {%- set accordion_active = "active" if form.errors else "" %}
<div class="ui styled accordion"> <div class="ui styled accordion">
<div class="title trigger {{ accordion_active }}"> <div class="title trigger {{ accordion_active }}">
{{ _('Log in with repository credentials') }} {{ _("Log in with repository credentials") }}
<i class="user icon button"></i> <i class="user icon button"></i>
</div> </div>
<div class="content {{ accordion_active }}"> <div class="content {{ accordion_active }}">
<form action="{{ url_for_security('login') }}" method="POST" name="login_user_form" class="ui large form"> <form action="{{ url_for_security("login") }}"
method="POST"
name="login_user_form"
class="ui large form">
{{ form.hidden_tag() }} {{ form.hidden_tag() }}
{{ form_errors(form) }} {{ form_errors(form) }}
{{ render_field(form.email, icon="user icon", autofocus=True, errormsg=False) }} {{ render_field(form.email, icon="user icon", autofocus=True, errormsg=False) }}
{{ render_field(form.password, icon="lock icon", errormsg=False) }} {{ render_field(form.password, icon="lock icon", errormsg=False) }}
<button type="submit" class="ui fluid large submit button"> <button type="submit" class="ui fluid large submit button">
<i class="ui sign-in icon"></i>{{ _('Log In') }} <i class="ui sign-in icon"></i>{{ _("Log In") }}
</button> </button>
</form> </form>
</div> </div>
@@ -74,25 +69,23 @@
{%- endblock form_outer %} {%- endblock form_outer %}
<div class="divider hidden"></div> <div class="divider hidden"></div>
</div> </div>
{%- block registerable %} {%- block registerable %}
{%- if security.registerable %} {%- if security.registerable %}
<div class="ui primary segment padded text-muted"> <div class="ui primary segment padded text-muted">
{% trans sitename=config.ACCOUNTS_SITENAME %}New to {{ sitename }}?{% endtrans %} {% trans sitename=config.ACCOUNTS_SITENAME %}New to {{ sitename }}?{% endtrans %}
<a href="{{ url_for_security('register', next=request.args.get('next')) }}">{{ _('Sign up') }}</a> <a href="{{ url_for_security('register', next=request.args.get('next') ) }}">{{ _("Sign up") }}</a>
</div> </div>
{%- endif %} {%- endif %}
{%- endblock registerable %} {%- endblock registerable %}
{%- block recoverable %} {%- block recoverable %}
{%- if security.recoverable %} {%- if security.recoverable %}
<div class="ui basic segment padded"> <div class="ui basic segment padded">
<a class="ui inverted header tiny" <a class="ui inverted header tiny"
href="{{ url_for_security('forgot_password') }}">{{ _('Forgot password?') }}</a> href="{{ url_for_security("forgot_password") }}">{{ _("Forgot password?") }}</a>
</div> </div>
{%- endif %} {%- endif %}
{%- endblock recoverable %} {%- endblock recoverable %}
</div> </div>
</div> </div>
</div> </div>
{% endblock page_body %} {% endblock page_body %}

View File

@@ -5,26 +5,21 @@
modify it under the terms of the MIT License; see LICENSE file for more modify it under the terms of the MIT License; see LICENSE file for more
details. details.
#} #}
{% extends config.INVENIO_THEME_TUGRAZ_ACCOUNT_BASE %} {% extends config.INVENIO_THEME_TUGRAZ_ACCOUNT_BASE %}
{% from "invenio_accounts/_macros.html" import render_field, form_errors %} {% from "invenio_accounts/_macros.html" import render_field, form_errors %}
{% block page_body %} {% block page_body %}
<div class="spacer-long"></div> <div class="spacer-long"></div>
<div class="ui container">
<div class="ui container">
<div class="ui stackable two column grid"> <div class="ui stackable two column grid">
<div class="centered row"> <div class="centered row">
<h1 class="ui header">{{ _("Create an Account") }}</h1> <h1 class="ui header">{{ _("Create an Account") }}</h1>
</div> </div>
<div class="column" id="switch_left"> <div class="column" id="switch_left">
<div class="ui basic segment"> <div class="ui basic segment">
<h4 class="ui header">{{ _("Citeable. Discoverable.") }}</h4> <h4 class="ui header">{{ _("Citeable. Discoverable.") }}</h4>
<p class="bodytext"> <p class="bodytext">
{{ _("Uploads get a Digital Object Identifier (DOI) to make them easily and uniquely citeable.")}}</h5> {{ _("Uploads get a Digital Object Identifier (DOI) to make them easily and uniquely citeable.") }}
</h5>
<h4 class="ui header">{{ _("Communities.") }}</h4> <h4 class="ui header">{{ _("Communities.") }}</h4>
<p class="bodytext"> <p class="bodytext">
{{ _("Accept or reject uploads to your own community (e.g workshops, EU projects, institutions or entire disciplines).") }} {{ _("Accept or reject uploads to your own community (e.g workshops, EU projects, institutions or entire disciplines).") }}
@@ -35,24 +30,25 @@
</h5> </h5>
</div> </div>
</div> </div>
<div class="column" id="switch_right"> <div class="column" id="switch_right">
{# Sigup with SSO #} {# Sigup with SSO #}
{%- if config.INVENIO_CONFIG_TUGRAZ_SHIBBOLETH %} {%- if config.INVENIO_CONFIG_TUGRAZ_SHIBBOLETH %}
<div class="ui divider"></div> <div class="ui divider"></div>
<a href="{{ url_for("sso_saml.sso", idp="idp") }}" class="login-page-button ui fluid large button"> <a href="{{ url_for("sso_saml.sso", idp="idp") }}"
class="login-page-button ui fluid large button">
<span style="font-size: 18px;">{{ _("Sign up with TUGRAZ") }}</span> <span style="font-size: 18px;">{{ _("Sign up with TUGRAZ") }}</span>
<img src="{{ url_for("static", filename=config.INVENIO_THEME_TUGRAZ_ICON) }}" height="20px" /> <img src="{{ url_for("static", filename=config.INVENIO_THEME_TUGRAZ_ICON) }}"
height="20px" />
</a> </a>
<div class="ui inverted horizontal divider"><span class="text-color">{{_ ("Or") }}</span></div> <div class="ui inverted horizontal divider">
<span class="text-color">{{ _ ("Or") }}</span>
</div>
{%- endif %} {%- endif %}
{%- block form_header %} {%- block form_header %}
{# can add a header img #} {# can add a header img #}
{%- block form_outer %} {%- block form_outer %}
{%- endblock form_outer %} {%- endblock form_outer %}
{%- endblock form_header %} {%- endblock form_header %}
{%- with form = register_user_form %} {%- with form = register_user_form %}
{%- set accordion_active = "active" if form.errors else "" %} {%- set accordion_active = "active" if form.errors else "" %}
<div class="ui padded centered large form"> <div class="ui padded centered large form">
@@ -62,21 +58,18 @@
<i class="user icon button"></i> <i class="user icon button"></i>
</div> </div>
<div class="content {{ accordion_active }}"> <div class="content {{ accordion_active }}">
<form class="ui large form" action="{{ url_for_security("register") }}" method="POST" name="register_user_form"> <form class="ui large form"
action="{{ url_for_security("register") }}"
method="POST"
name="register_user_form">
{{ form_errors(form) }} {{ form_errors(form) }}
{{ form.hidden_tag() }} {{ form.hidden_tag() }}
{%- block registration_form_fields scoped %} {%- block registration_form_fields scoped %}
{{ render_field(form.email, icon="user icon", autofocus=True, errormsg=False) }} {{ render_field(form.email, icon="user icon", autofocus=True, errormsg=False) }}
{{ render_field(form.password, icon="lock icon", errormsg=False) }} {{ render_field(form.password, icon="lock icon", errormsg=False) }}
{%- if form.password_confirm %} {%- if form.password_confirm %}{{ render_field(form.password_confirm, icon="lock icon", errormsg=False) }}{%- endif %}
{{ render_field(form.password_confirm, icon="lock icon", errormsg=False) }}
{%- endif %}
{%- endblock registration_form_fields %} {%- endblock registration_form_fields %}
{%- if form.recaptcha %}<div class="grouped fields">{{ form.recaptcha() }}</div>{%- endif %}
{%- if form.recaptcha %}
<div class="grouped fields">{{ form.recaptcha() }}</div>
{%- endif %}
<div class="centered row"> <div class="centered row">
<button type="submit" class="ui fluid large submit button"> <button type="submit" class="ui fluid large submit button">
<i class="ui edit outline icon"></i>{{ _("Sign up") }} <i class="ui edit outline icon"></i>{{ _("Sign up") }}
@@ -90,7 +83,5 @@
<div class="ui divider"></div> <div class="ui divider"></div>
</div> </div>
</div> </div>
</div> </div>
{% endblock page_body %} {% endblock page_body %}

View File

@@ -5,93 +5,74 @@
modify it under the terms of the MIT License; see LICENSE file for more modify it under the terms of the MIT License; see LICENSE file for more
details. details.
#} #}
<!DOCTYPE html> <!DOCTYPE html>
<html lang="{{ current_i18n.locale.language|safe }}" dir="{{ current_i18n.locale.text_direction }}"> <html lang="{{ current_i18n.locale.language|safe }}"
dir="{{ current_i18n.locale.text_direction }}">
<head> <head>
{%- block head %} {%- block head %}
{%- block head_meta %} {%- block head_meta %}
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
{%- if description %}<meta name="description" content="{{ description }}" />{% endif %}
{%- if description %} {%- if keywords %}<meta name="keywords" content="{{ keywords }}" />{% endif %}
<meta name="description" content="{{ description }}" />
{% endif %}
{%- if keywords %}
<meta name="keywords" content="{{ keywords }}" />
{% endif %}
{%- if config.get("THEME_GOOGLE_SITE_VERIFICATION", None) %} {%- if config.get("THEME_GOOGLE_SITE_VERIFICATION", None) %}
{%- for google_id in config.THEME_GOOGLE_SITE_VERIFICATION %} {%- for google_id in config.THEME_GOOGLE_SITE_VERIFICATION %}
<meta name="google-site-verification" content="{{google_id}}"/> <meta name="google-site-verification" content="{{ google_id }}" />
{%- endfor %} {%- endfor %}
{%- endif %} {%- endif %}
{%- endblock head_meta %} {%- endblock head_meta %}
{%- block head_title %} {%- block head_title %}
{%- set title = title or _(config.THEME_SITENAME) or _("Invenio") %} {%- set title = title or _(config.THEME_SITENAME) or _("Invenio") %}
<title>{{title}}</title> <title>{{ title }}</title>
{%- endblock head_title %} {%- endblock head_title %}
{%- block head_links %} {%- block head_links %}
<link rel="shortcut icon" href="{{ url_for("static", filename="favicon.ico") }}"/> <link rel="shortcut icon"
href="{{ url_for("static", filename="favicon.ico") }}" />
{%- if keywords %} {%- if keywords %}<link rel="canonical" href="{{ canonical_url }}" />{% endif %}
<link rel="canonical" href="{{ canonical_url }}"/>
{% endif %}
{%- block head_links_langs %} {%- block head_links_langs %}
{%- if alternate_urls %} {%- if alternate_urls %}
{%- for alt_ln, alternate_url in alternate_urls.items() %} {%- for alt_ln, alternate_url in alternate_urls.items() %}
<link rel="alternate" hreflang="{{ alt_ln }}" href="{{ alternate_url }}"/> <link rel="alternate" hreflang="{{ alt_ln }}" href="{{ alternate_url }}" />
{%- endfor %} {%- endfor %}
{%- endif %} {%- endif %}
{%- endblock %} {%- endblock %}
{%- endblock head_links %} {%- endblock head_links %}
{%- block header %}
{%- block header %}{% endblock header %} {% endblock header %}
{%- block css %} {%- block css %}
{{ webpack["theme.css"] }} {{ webpack["theme.css"] }}
{{ webpack["invenio-theme-tugraz-theme.css"] }} {{ webpack["invenio-theme-tugraz-theme.css"] }}
{%- endblock css %} {%- endblock css %}
{%- endblock head %} {%- endblock head %}
</head> </head>
<body itemscope
<body itemscope itemtype="http://schema.org/WebPage" data-spy="scroll" data-target=".scrollspy-target"> itemtype="http://schema.org/WebPage"
data-spy="scroll"
data-target=".scrollspy-target">
{%- block body %} {%- block body %}
{%- block browserupgrade %} {%- block browserupgrade %}
<!--[if lt IE 10]> <!--[if lt IE 10]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p> <p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]--> <![endif]-->
{%- endblock browserupgrade %} {%- endblock browserupgrade %}
{%- block body_inner %} {%- block body_inner %}
{%- block page_header %} {%- block page_header %}
{% include config.THEME_HEADER_TEMPLATE %} {% include config.THEME_HEADER_TEMPLATE %}
{%- endblock page_header %} {%- endblock page_header %}
{%- block page_body %} {%- block page_body %}
{% include "invenio_theme/body.html" %} {% include "invenio_theme/body.html" %}
{%- endblock page_body %} {%- endblock page_body %}
{%- block page_footer %} {%- block page_footer %}
{% include config.THEME_FOOTER_TEMPLATE %} {% include config.THEME_FOOTER_TEMPLATE %}
{%- endblock page_footer %} {%- endblock page_footer %}
{%- endblock body_inner %} {%- endblock body_inner %}
{%- block javascript %} {%- block javascript %}
{% include config.THEME_JAVASCRIPT_TEMPLATE %} {% include config.THEME_JAVASCRIPT_TEMPLATE %}
{%- endblock javascript %} {%- endblock javascript %}
{%- block trackingcode %} {%- block trackingcode %}
{% include config.THEME_TRACKINGCODE_TEMPLATE %} {% include config.THEME_TRACKINGCODE_TEMPLATE %}
{%- endblock %} {%- endblock %}
{%- endblock body %} {%- endblock body %}
</body> </body>
</html> </html>

View File

@@ -5,17 +5,29 @@
modify it under the terms of the MIT License; see LICENSE file for more modify it under the terms of the MIT License; see LICENSE file for more
details. details.
#} #}
<div class="ui segment" style="padding-bottom: 10px;"> <div class="ui segment" style="padding-bottom: 10px;">
<h4>{{ _("Good reasons to use the Repository of the TU Graz") }}</h4> <h4>{{ _("Good reasons to use the Repository of the TU Graz") }}</h4>
<ul> <ul>
<li><strong>{{_("Safe") }}</strong> &mdash; {{_("Your research results are permanently available.") }}</li> <li>
<li><strong>{{_("Trusted") }}</strong> &mdash; {{_("A service from TU Graz, developed in cooperation with CERN.") }}</li> <strong>{{ _("Safe") }}</strong> &mdash; {{ _("Your research results are permanently available.") }}
<li><strong>{{_("Citeable") }}</strong> &mdash; {{_("Every upload is assigned a Digital Object Identifier (DOI).") }}</li> </li>
<li><strong>{{_("No waiting time") }}</strong> &mdash; {{_("Uploads are made available online as soon as you hit publish. Your DOI is registered within seconds.") }}</li> <li>
<li><strong>{{_("Open or closed") }}</strong> &mdash; {{_("You determine the visibility of your uploads. A restricted access mode is possible.") }}</li> <strong>{{ _("Trusted") }}</strong> &mdash; {{ _("A service from TU Graz, developed in cooperation with CERN.") }}
<li><strong>{{_("Versioning") }}</strong> &mdash; {{_("Easily update your dataset with the versioning feature.") }}</li> </li>
<li><strong>{{_("Usage statistics") }}</strong> &mdash; {{ _("All uploads display standards compliant usage statistics. ") }} <a href="help/statistics">({{ _("More") }})</a></li> <li>
<strong>{{ _("Citeable") }}</strong> &mdash; {{ _("Every upload is assigned a Digital Object Identifier (DOI).") }}
</li>
<li>
<strong>{{ _("No waiting time") }}</strong> &mdash; {{ _("Uploads are made available online as soon as you hit publish. Your DOI is registered within seconds.") }}
</li>
<li>
<strong>{{ _("Open or closed") }}</strong> &mdash; {{ _("You determine the visibility of your uploads. A restricted access mode is possible.") }}
</li>
<li>
<strong>{{ _("Versioning") }}</strong> &mdash; {{ _("Easily update your dataset with the versioning feature.") }}
</li>
<li>
<strong>{{ _("Usage statistics") }}</strong> &mdash; {{ _("All uploads display standards compliant usage statistics. ") }} <a href="help/statistics">({{ _("More") }})</a>
</li>
</ul> </ul>
</div> </div>

View File

@@ -5,21 +5,14 @@
modify it under the terms of the MIT License; see LICENSE file for more modify it under the terms of the MIT License; see LICENSE file for more
details. details.
#} #}
<div class="ui segment"> <div class="ui segment">
<h4>{{ _("Need help?") }}</h4> <h4>{{ _("Need help?") }}</h4>
{%- if config.THEME_TUGRAZ_CONTACT_FORM %} {%- if config.THEME_TUGRAZ_CONTACT_FORM %}
<div style="padding-bottom: 10px;"> <div style="padding-bottom: 10px;">
<a id="feedback-form" class="fluid ui button"> <a id="feedback-form" class="fluid ui button">{{ _("Contact us") }}</a>
{{ _("Contact us") }}
</a>
</div> </div>
{%- endif %} {%- endif %}
<p> <p>{{ _("We can help with:") }}</p>
{{ _("We can help with:") }}
</p>
<ul> <ul>
<li>{{ _("Upload your research results, software, preprints, etc.") }}</li> <li>{{ _("Upload your research results, software, preprints, etc.") }}</li>
<li>{{ _("Increase upload limit beyond our default policy of 10GB.") }}</li> <li>{{ _("Increase upload limit beyond our default policy of 10GB.") }}</li>

View File

@@ -4,18 +4,14 @@
invenio-theme-tugraz is free software; you can redistribute it and/or invenio-theme-tugraz is free software; you can redistribute it and/or
modify it under the terms of the MIT License; see LICENSE file for more modify it under the terms of the MIT License; see LICENSE file for more
details. details.
#} #}
{% extends config.THEME_ERROR_TEMPLATE %}
{% extends config.THEME_ERROR_TEMPLATE %} {% block message %}
<h1>{{ _("Internal server error") }}</h1>
{% block message %}
<h1> {{ _('Internal server error') }} </h1>
<p> <p>
{{ _( {{ _('Please contact <a href="mailto:{support_email}">our support</a>
'Please contact <a href="mailto:{support_email}">our support</a> to let us know about this error.').format(support_email=config.THEME_TUGRAZ_SUPPORT_EMAIL)
to let us know about this error.'
).format(support_email=config.THEME_TUGRAZ_SUPPORT_EMAIL)
}} }}
</p> </p>
{# TODO: provide g.sentry_event_id here once sentry is configured, cf. invenio_theme/500.html #} {# TODO: provide g.sentry_event_id here once sentry is configured, cf. invenio_theme/500.html #}
{% endblock message %} {% endblock message %}

View File

@@ -5,17 +5,11 @@
modify it under the terms of the MIT License; see LICENSE file for more modify it under the terms of the MIT License; see LICENSE file for more
details. details.
#} #}
{%- block css %}{{ webpack['invenio-theme-tugraz-theme.css'] }}{%- endblock %}
{%- block css %}
{{ webpack['invenio-theme-tugraz-theme.css'] }}
{%- endblock %}
{%- block javascript %} {%- block javascript %}
{{ webpack['invenio-theme-tugraz-js.js'] }} {{ webpack['invenio-theme-tugraz-js.js'] }}
{%- endblock javascript %} {%- endblock javascript %}
<div class="spacer"></div> <div class="spacer"></div>
<footer id="footer" class="footer-bottom"> <footer id="footer" class="footer-bottom">
<div class="ui container"> <div class="ui container">
<div class="ui grid"> <div class="ui grid">
@@ -24,46 +18,43 @@
<h2>{{ _("Repository") }}</h2> <h2>{{ _("Repository") }}</h2>
<div class="ui list"> <div class="ui list">
<div class="item"> <div class="item">
<a href="https://tu-graz-library.github.io/docs-repository" title="Repository documentation" <a href="https://tu-graz-library.github.io/docs-repository"
title="Repository documentation"
target="_blank"> target="_blank">
{{ _("Documentation") }} <i class="external alternate icon"></i> {{ _("Documentation") }} <i class="external alternate icon"></i>
</a> </a>
</div> </div>
<div class="item"> <div class="item">
<a href="{{ url_for('invenio_config_tugraz.guide') }}" <a href="{{ url_for("invenio_config_tugraz.guide") }}"
title="Quick guide" target="_blank"> title="Quick guide"
target="_blank">
{{ _("Reference Guide") }} <i class="download icon"></i> {{ _("Reference Guide") }} <i class="download icon"></i>
</a> </a>
</div> </div>
<div class="item"> <div class="item">
<a href="{{ url_for('invenio_app_rdm.help_search') }}" <a href="{{ url_for("invenio_app_rdm.help_search") }}"
title="Search guide"> title="Search guide">
{{ _("Search Guide") }}<i class="angle right icon"></i> {{ _("Search Guide") }}<i class="angle right icon"></i>
</a> </a>
</div> </div>
<div class="item"> <div class="item">
<a href="{{ url_for('invenio_config_tugraz.gdpr') }}" <a href="{{ url_for("invenio_config_tugraz.gdpr") }}"
title="General Data Protection Rights" target="_blank"> title="General Data Protection Rights"
target="_blank">
{{ _("Data Protection") }} <i class="download icon"></i> {{ _("Data Protection") }} <i class="download icon"></i>
</a> </a>
</div> </div>
<div class="item"> <div class="item">
<a href="{{ url_for('invenio_config_tugraz.terms') }}" <a href="{{ url_for("invenio_config_tugraz.terms") }}"
title="Terms and Conditions" target="_blank"> title="Terms and Conditions"
target="_blank">
{{ _("Terms and Conditions") }} <i class="download icon"></i> {{ _("Terms and Conditions") }} <i class="download icon"></i>
</a> </a>
</div> </div>
</div> </div>
</div> </div>
<div class="column"> <div class="column">
<h2>{{ _("Features") }}</h2> <h2>{{ _("Features") }}</h2>
<div class="ui list"> <div class="ui list">
<div class="item">{{ _("Scalability") }}</div> <div class="item">{{ _("Scalability") }}</div>
<div class="item">{{ _("Institutional integration") }}</div> <div class="item">{{ _("Institutional integration") }}</div>
@@ -72,8 +63,6 @@
<div class="item">{{ _("Resilient") }}</div> <div class="item">{{ _("Resilient") }}</div>
</div> </div>
</div> </div>
<div class="column"> <div class="column">
<h2>{{ _("Connected Services") }}</h2> <h2>{{ _("Connected Services") }}</h2>
<div class="ui list"> <div class="ui list">
@@ -82,84 +71,73 @@
{{ _("PURE") }} <i class="external alternate icon"></i> {{ _("PURE") }} <i class="external alternate icon"></i>
</a> </a>
</div> </div>
<div class="item"> <div class="item">
<a href="http://campusonline.tugraz.at" title="CAMPUS online" target="_blank"> <a href="http://campusonline.tugraz.at"
title="CAMPUS online"
target="_blank">
{{ _("CampusOnline") }} <i class="external alternate icon"></i> {{ _("CampusOnline") }} <i class="external alternate icon"></i>
</a> </a>
</div> </div>
<div class="item"> <div class="item">
<a href="https://rdm.tugraz.at" title="Research Data Management" target="_blank"> <a href="https://rdm.tugraz.at"
title="Research Data Management"
target="_blank">
{{ _("Research Data Management") }} <i class="external alternate icon"></i> {{ _("Research Data Management") }} <i class="external alternate icon"></i>
</a> </a>
</div> </div>
</div> </div>
</div> </div>
<div class="column"> <div class="column">
<h2>{{ _("Accessibility") }}</h2> <h2>{{ _("Accessibility") }}</h2>
<div class="ui list"> <div class="ui list">
<div class="item"> <div class="item">{{ _("Tipp:") }}</div>
{{ _("Tipp:") }} <div class="item">{{ _("Use Ctrl + and Crtl -") }}</div>
</div> <div class="item">{{ _("to change the font size.") }}</div>
<div class="item">
{{ _("Use Ctrl + and Crtl -") }}
</div>
<div class="item">
{{ _("to change the font size.") }}
</div> </div>
</div> </div>
</div> </div>
</div>
<div class="ui divider"></div> <div class="ui divider"></div>
<div class="doubling four column row"> <div class="doubling four column row">
<div class="column"> <div class="column">
<div class="logos"> <div class="logos">
<strong>Powered by</strong> <strong>Powered by</strong>
<a href="http://inveniosoftware.org/products/rdm" target="_blank" title="invenioRDM"> <a href="http://inveniosoftware.org/products/rdm"
<img src="{{ url_for("static", filename="images/inveniordm-tail.svg")}}" target="_blank"
alt="InvenioRDM logo" title="invenioRDM">
style="display: block; height: 90px; margin-top: 8px;"> <img src="{{ url_for("static", filename="images/inveniordm-tail.svg") }}" alt="InvenioRDM logo" style="display: block; height: 90px; margin-top: 8px;">
</a> </a>
</div> </div>
</div> </div>
<div class="column"> <div class="column">
<div class="logos"> <div class="logos">
<strong>Enabled by</strong> <strong>Enabled by</strong>
<a href="https://forschungsdaten.at/en/fair-data-austria/" target="_blank" title="Fair Data Austria"> <a href="https://forschungsdaten.at/en/fair-data-austria/"
<img src="{{ url_for("static", filename="images/Fair_Data_Austria_orangerot.png")}}" target="_blank"
alt="Fair Data Austria" title="Fair Data Austria">
style="display: block; height: auto; margin-top: 15px; width: 230px;"> <img src="{{ url_for("static", filename="images/Fair_Data_Austria_orangerot.png") }}" alt="Fair Data Austria" style="display: block; height: auto; margin-top: 15px; width: 230px;">
</a> </a>
</div> </div>
</div> </div>
<div class="column"> <div class="column">
<div class="logos"> <div class="logos">
<strong>Supported by</strong> <strong>Supported by</strong>
<a href="https://www.openeducation.at" target="_blank" title="Open Education Austria"> <a href="https://www.openeducation.at"
<img src="{{ url_for("static", filename="images/oea.svg")}}" target="_blank"
alt="Open Education Austria" title="Open Education Austria">
style="display: block; height: auto; margin-top: 15px; width: 200px;"> <img src="{{ url_for("static", filename="images/oea.svg") }}" alt="Open Education Austria" style="display: block; height: auto; margin-top: 15px; width: 200px;">
</a> </a>
</div> </div>
</div> </div>
</div> </div>
<div class="ui divider"></div> <div class="ui divider"></div>
<div class="doubling four column row"> <div class="doubling four column row">
<div class="column"> <div class="column">
<div class="logos"> <div class="logos">
<strong>Listed on</strong> <strong>Listed on</strong>
<a href="https://www.re3data.org/repository/r3d100013565" target="_blank" title="Registry of Research Data Repositories"> <a href="https://www.re3data.org/repository/r3d100013565"
<img src="{{ url_for("static", filename="images/re3data.svg")}}" target="_blank"
alt="Registry of Research Data Repositories" title="Registry of Research Data Repositories">
style="display: block; height: auto; width: 300px;"> <img src="{{ url_for("static", filename="images/re3data.svg") }}" alt="Registry of Research Data Repositories" style="display: block; height: auto; width: 300px;">
</a> </a>
</div> </div>
</div> </div>

View File

@@ -5,17 +5,12 @@
modify it under the terms of the MIT License; see LICENSE file for more modify it under the terms of the MIT License; see LICENSE file for more
details. details.
#} #}
<div class="sixteen wide column random-records-frontpage"> <div class="sixteen wide column random-records-frontpage">
<div class="center aligned ui equal height grid"> <div class="center aligned ui equal height grid">
<div class="left aligned column"> <div class="left aligned column">
<div class="ui segment image"> <div class="ui segment image">
<h2>{{ _("Research Results") }}</h2> <h2>{{ _("Research Results") }}</h2>
<div>{{ _("Frontpage: Description for research results") }}</div>
<div>
{{ _("Frontpage: Description for research results") }}
</div>
<ul> <ul>
{# {#
<li> <li>
@@ -34,11 +29,7 @@
<div class="left aligned column"> <div class="left aligned column">
<div class="ui segment image"> <div class="ui segment image">
<h2>{{ _("Publications") }}</h2> <h2>{{ _("Publications") }}</h2>
<div>{{ _("Frontpage: Description for publications") }}</div>
<div>
{{ _("Frontpage: Description for publications") }}
</div>
<ul> <ul>
{# {#
<li> <li>
@@ -54,11 +45,7 @@
<div class="left aligned column"> <div class="left aligned column">
<div class="ui segment image"> <div class="ui segment image">
<h2>{{ _("Educational Resources") }}</h2> <h2>{{ _("Educational Resources") }}</h2>
<div>{{ _("Frontpage: Description for open educational resources") }}</div>
<div>
{{ _("Frontpage: Description for open educational resources") }}
</div>
<ul> <ul>
{# {#
<li> <li>

View File

@@ -5,48 +5,52 @@
modify it under the terms of the MIT License; see LICENSE file for more modify it under the terms of the MIT License; see LICENSE file for more
details. details.
#} #}
{% if not config.THEME_TUGRAZ_PRODUCTION %} {% if not config.THEME_TUGRAZ_PRODUCTION %}
<div class="ui sticky test-instance"> <div class="ui sticky test-instance">
<h4>{{ _("Test Instance") }}</h4> <h4>{{ _("Test Instance") }}</h4>
<p>{{ _("This is the test instance of the TU Graz Repository.") }}</p> <p>{{ _("This is the test instance of the TU Graz Repository.") }}</p>
</div> </div>
{% endif %} {% endif %}
<div> <div>
<header> <header>
{%- block site_banner %} {%- block site_banner %}
{% from 'invenio_banners/banner.html' import banner %} {% from 'invenio_banners/banner.html' import banner %}
{{ banner() }} {{ banner() }}
{%- endblock site_banner %} {%- endblock site_banner %}
{%- block navbar %} {%- block navbar %}
<nav> <nav>
{%- block navbar_header %} {%- block navbar_header %}
{%- include "invenio_theme_tugraz/navbar.html" %} {%- include "invenio_theme_tugraz/navbar.html" %}
{%- endblock navbar_header %} {%- endblock navbar_header %}
<div class="ui container"> <div class="ui container">
<div class="ui grid stackable container"> <div class="ui grid stackable container">
<div class="three column row centered" style="padding-bottom: 0;"> <div class="three column row centered" style="padding-bottom: 0;">
<div class="two wide column main-menu-entry"> <div class="two wide column main-menu-entry">
<a href="{{url_for('invenio_theme_tugraz.index')}}" title="Home" class="no-decoration"> <a href="{{ url_for("invenio_theme_tugraz.index") }}"
title="Home"
class="no-decoration">
<span class="home-inline"> <span class="home-inline">
<svg shape-rendering="geometricPrecision" id="int-menu-q-home-icon" <svg shape-rendering="geometricPrecision"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" id="int-menu-q-home-icon"
version="1.1" xml:space="preserve" height="36.997" width="35.969" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
enable-background="new 0 0 595.28 841.89" y="0px" x="0px" xmlns:cc="http://creativecommons.org/ns#" xmlns="http://www.w3.org/2000/svg"
xmlns:dc="http://purl.org/dc/elements/1.1/" viewBox="0 0 35.969 36.997451"> version="1.1"
<polyline style="stroke:#E4154B;stroke-linecap:square;stroke-width:4;fill:none" xml:space="preserve"
points="282.72 437.28 282.72 414.77 297.71 406.69 312.69 414.77 312.69 437.28" height="36.997"
transform="translate(-279.72 -403.28)"> width="35.969"
enable-background="new 0 0 595.28 841.89"
y="0px"
x="0px"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
viewBox="0 0 35.969 36.997451">
<polyline style="stroke:#E4154B;stroke-linecap:square;stroke-width:4;fill:none" points="282.72 437.28 282.72 414.77 297.71 406.69 312.69 414.77 312.69 437.28" transform="translate(-279.72 -403.28)">
</polyline> </polyline>
</svg> </svg>
{{ _("Home") }} {{ _("Home") }}
</span> </span>
</a> </a>
</div> </div>
<div class="two wide column main-menu-entry"> <div class="two wide column main-menu-entry">
<a role="menuitem" href="/communities" class="no-decoration">{{ _("Communities") }}</a> <a role="menuitem" href="/communities" class="no-decoration">{{ _("Communities") }}</a>
</div> </div>
@@ -54,18 +58,12 @@
<a role="menuitem" href="/me/overview" class="no-decoration">{{ _("Dashboard") }}</a> <a role="menuitem" href="/me/overview" class="no-decoration">{{ _("Dashboard") }}</a>
</div> </div>
</div> </div>
<div id="margin-divider" class="ui divider main-menu-underline-line"></div>
<div id="margin-divider" class="ui divider main-menu-underline-line">
</div> </div>
</div>
<div class="spacer"></div> <div class="spacer"></div>
</div> </div>
</nav> </nav>
{%- endblock navbar %} {%- endblock navbar %}
{%- block flashmessages %} {%- block flashmessages %}
{%- from "invenio_theme/macros/messages.html" import flashed_messages with context -%} {%- from "invenio_theme/macros/messages.html" import flashed_messages with context -%}
{{ flashed_messages() }} {{ flashed_messages() }}

View File

@@ -5,31 +5,21 @@
modify it under the terms of the MIT License; see LICENSE file for more modify it under the terms of the MIT License; see LICENSE file for more
details. details.
#} #}
{%- extends config.INVENIO_THEME_TUGRAZ_BASE_TEMPLATE %} {%- extends config.INVENIO_THEME_TUGRAZ_BASE_TEMPLATE %}
{%- block javascript %} {%- block javascript %}
{{ webpack['invenio-theme-tugraz-js.js'] }} {{ webpack['invenio-theme-tugraz-js.js'] }}
{%- endblock javascript %} {%- endblock javascript %}
{%- block page_body %} {%- block page_body %}
<div class="ui container">
<div class="ui container">
<div class="ui divider hidden"></div> <div class="ui divider hidden"></div>
<div class="ui stackable grid"> <div class="ui stackable grid">
{% include "invenio_theme_tugraz/frontpage_overview.html" %} {% include "invenio_theme_tugraz/frontpage_overview.html" %}
{% include "invenio_theme_tugraz/recent_uploads.html" %} {% include "invenio_theme_tugraz/recent_uploads.html" %}
<!---segments--> <!---segments-->
<div class="six wide column"> <div class="six wide column">
{% include "invenio_theme_tugraz/contact_us.html" %} {% include "invenio_theme_tugraz/contact_us.html" %}
{% include "invenio_theme_tugraz/benefits.html" %} {% include "invenio_theme_tugraz/benefits.html" %}
</div> </div>
</div> </div>
</div> </div>
{%- endblock %} {%- endblock %}

View File

@@ -5,26 +5,25 @@
invenio-theme-tugraz is free software; you can redistribute it and/or invenio-theme-tugraz is free software; you can redistribute it and/or
modify it under the terms of the MIT License; see LICENSE file for more modify it under the terms of the MIT License; see LICENSE file for more
details. details.
#} #}
{%- macro creators (authors_list) %} {%- macro creators (authors_list) %}
{%- for creators in authors_list %}
{%- for creators in authors_list %} {%- if creators.identifiers and creators.identifiers.orcid %}
<a href="{{ creators.identifiers.orcid|pid_url("orcid") }}"
{%- if creators.identifiers and creators.identifiers.orcid %} target="_blank">
<a href="{{creators.identifiers.orcid|pid_url('orcid')}}" target="_blank" ><img class="inline-orcid" src="{{ url_for('static', filename='extra/orcid.png')}}" /></a> <img class="inline-orcid"
{%- endif %} src="{{ url_for('static', filename='extra/orcid.png') }}" />
</a>
<span class="text-muted" {% if creators.affiliations %} {% for affiliation in creators.affiliations %} data-tooltip="{{affiliation.name}}" data-inverted="" {%- endfor %} {% endif %}>{{creators.person_or_org.name}}</span> {%- endif %}
{% if not loop.last %}; {% endif %} <span class="text-muted"
{% if creators.affiliations %} {% for affiliation in creators.affiliations %}data-tooltip="{{ affiliation.name }}" data-inverted=""{%- endfor %} {% endif %}>{{ creators.person_or_org.name }}</span>
{%- endfor %} {% if not loop.last %};{% endif %}
{%- endfor %}
{%- endmacro %} {%- endmacro %}
<!--TODO: contributers--> <!--TODO: contributers-->
{%- macro contributors(contributors_list) %} {%- macro contributors(contributors_list) %}
{%- for group in contributors_list|groupby('type')%} {%- for group in contributors_list|groupby('type') %}
<h5>{{group.grouper}}(s)</h5> <h5>{{ group.grouper }}(s)</h5>
{{authors(group.list)}} {{ authors(group.list) }}
{%- endfor %} {%- endfor %}
{%- endmacro %} {%- endmacro %}

View File

@@ -5,7 +5,6 @@
modify it under the terms of the MIT License; see LICENSE file for more modify it under the terms of the MIT License; see LICENSE file for more
details. details.
#} #}
{% set options = [ {% set options = [
{ {
"key": "records", "key": "records",
@@ -17,20 +16,18 @@
"text": _("Research Results"), "text": _("Research Results"),
"value": "/records/search", "value": "/records/search",
"title": "Research Data", "title": "Research Data",
},{ },{
"key": "marc21", "key": "marc21",
"text": _("Publications"), "text": _("Publications"),
"value": url_for("invenio_records_marc21.search"), "value": url_for("invenio_records_marc21.search"),
"title": "publication", "title": "publication",
},{ },{
"key": "lom", "key": "lom",
"text": _("Educational Resources"), "text": _("Educational Resources"),
"value": url_for("invenio_records_lom.search"), "value": url_for("invenio_records_lom.search"),
"title": "oer", "title": "oer",
} }
] ] %}
%}
<div class="ui container"> <div class="ui container">
<div class="short-menu" id="all-menu-top-table"> <div class="short-menu" id="all-menu-top-table">
<div class="short-menu-left"> <div class="short-menu-left">
@@ -41,40 +38,35 @@
<div id="header-search-bar" data-options='{{ options | tojson }}'></div> <div id="header-search-bar" data-options='{{ options | tojson }}'></div>
</div> </div>
</div> </div>
<div class="short-menu-left-lang"> <div class="short-menu-left-lang">
{%- for l in current_i18n.get_locales() %} {%- for l in current_i18n.get_locales() %}
{%- if current_i18n.language != l.language %} {%- if current_i18n.language != l.language %}
<a href="{{ url_for("invenio_i18n.set_lang", lang_code=l.language) }}" <a href="{{ url_for("invenio_i18n.set_lang", lang_code=l.language) }}"
class="no-decoration"> class="no-decoration">{{ l.get_display_name().upper()[0:2] }}</a>
{{ l.get_display_name().upper()[0:2] }}
</a>
{%- endif %} {%- endif %}
{%- endfor %} {%- endfor %}
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<div class="short-menu-right"> <div class="short-menu-right">
{%- block navbar_right %} {%- block navbar_right %}
{%- include config.THEME_HEADER_LOGIN_TEMPLATE %} {%- include config.THEME_HEADER_LOGIN_TEMPLATE %}
{%- endblock navbar_right %} {%- endblock navbar_right %}
</div> </div>
</div> </div>
<!----END MENU-------------------------------------------------------------> <!----END MENU------------------------------------------------------------->
<div class="ui grid" id="main-logo"> <div class="ui grid" id="main-logo">
<!-- Left --> <!-- Left -->
<div class="left floated left aligned six wide column" id="repo-logo"> <div class="left floated left aligned six wide column" id="repo-logo">
<div class="inline-elements"> <div class="inline-elements">
<div class="repo-img"> <div class="repo-img">
<img height="51.862" src="{{ url_for("static", filename="images/library_logo.png")}}"> <img height="51.862" src="{{ url_for("static", filename="images/library_logo.png") }}">
</div> </div>
<div class="affiliation-text"> <div class="affiliation-text">
<a title="Home" href="{{url_for("invenio_theme_tugraz.index")}}" class="no-decoration"> <a title="Home"
href="{{ url_for("invenio_theme_tugraz.index") }}"
class="no-decoration">
{{ _("TU GRAZ") }} {{ _("TU GRAZ") }}
<br> <br>
{{ _("REPOSITORY") }} {{ _("REPOSITORY") }}
@@ -87,7 +79,10 @@
<!-- Right --> <!-- Right -->
<div class="right floated right aligned six wide column"> <div class="right floated right aligned six wide column">
<div class="affiliation-logo" id="int-header-logo"> <div class="affiliation-logo" id="int-header-logo">
<a href="https://www.tugraz.at" title="TU Graz Home" target="_blank" class="no-decoration"> <a href="https://www.tugraz.at"
title="TU Graz Home"
target="_blank"
class="no-decoration">
<div class="affiliation-logo-claim"> <div class="affiliation-logo-claim">
<div class="affiliation-logo-claim-single">{{ _("SCIENCE") }}</div> <div class="affiliation-logo-claim-single">{{ _("SCIENCE") }}</div>
<div class="affiliation-logo-claim-single">{{ _("PASSION") }}</div> <div class="affiliation-logo-claim-single">{{ _("PASSION") }}</div>

View File

@@ -5,25 +5,19 @@
modify it under the terms of the MIT License; see LICENSE file for more modify it under the terms of the MIT License; see LICENSE file for more
details. details.
#} #}
{%- extends config.INVENIO_THEME_TUGRAZ_BASE_TEMPLATE %} {%- extends config.INVENIO_THEME_TUGRAZ_BASE_TEMPLATE %}
{%- set active_dashboard_menu_item = "overview" %} {%- set active_dashboard_menu_item = "overview" %}
{%- set title = _("Overview") %} {%- set title = _("Overview") %}
{% block javascript %} {% block javascript %}
{{ super() }} {{ super() }}
{{ webpack['invenio-theme-tugraz-unlock.js'] }} {{ webpack['invenio-theme-tugraz-unlock.js'] }}
{% endblock javascript %} {% endblock javascript %}
{%- block page_body %} {%- block page_body %}
{%- block user_dashboard_header %} {%- block user_dashboard_header %}
{% include "invenio_app_rdm/users/header.html" %} {% include "invenio_app_rdm/users/header.html" %}
{%- endblock user_dashboard_header %} {%- endblock user_dashboard_header %}
<div class="ui container rel-mt-2"> <div class="ui container rel-mt-2">
<h2>Overview</h2> <h2>Overview</h2>
<div class="ui five column stackable grid overview"> <div class="ui five column stackable grid overview">
{% if is_tugraz_authenticated %} {% if is_tugraz_authenticated %}
{# 3 columns: Research-Uploads, Communities, and Requests #} {# 3 columns: Research-Uploads, Communities, and Requests #}
@@ -33,9 +27,7 @@
<a class="ui left floated image" href="/me/uploads"> <a class="ui left floated image" href="/me/uploads">
<img width="400px" alt="Research Results" src="{{ url_for("static", filename="images/diamond.svg") }}"> <img width="400px" alt="Research Results" src="{{ url_for("static", filename="images/diamond.svg") }}">
</a> </a>
<div class="ui right floated text"> <div class="ui right floated text">{{ _("Overview: Description for research results") }}</div>
{{ _("Overview: Description for research results") }}
</div>
</div> </div>
</div> </div>
<div class="column"> <div class="column">
@@ -44,9 +36,7 @@
<a class="ui left floated image" href="/me/communities"> <a class="ui left floated image" href="/me/communities">
<img width="400px" alt="Communities" src="{{ url_for("static", filename="images/group-discussion.svg") }}"> <img width="400px" alt="Communities" src="{{ url_for("static", filename="images/group-discussion.svg") }}">
</a> </a>
<div> <div>{{ _("Overview: Description of Communities") }}</div>
{{ _("Overview: Description of Communities") }}
</div>
</div> </div>
</div> </div>
<div class="column"> <div class="column">
@@ -55,12 +45,11 @@
<a class="ui left floated image" href="/me/requests"> <a class="ui left floated image" href="/me/requests">
<img width="400px" alt="Requests" src="{{ url_for("static", filename="images/umbrella.svg") }}"> <img width="400px" alt="Requests" src="{{ url_for("static", filename="images/umbrella.svg") }}">
</a> </a>
<div> <div>{{ _("Overview: Description of Requests") }}</div>
{{ _("Overview: Description of Requests") }}
</div> </div>
</div> </div>
</div> {% else %}
{% else %} {# not is_tugraz_authenticated #} {# not is_tugraz_authenticated #}
{# 1 column: greyed out Research-Uploads #} {# 1 column: greyed out Research-Uploads #}
<div class="column"> <div class="column">
{# a modal's HTML can be placed anywhere, so I placed it here, right before it's used #} {# a modal's HTML can be placed anywhere, so I placed it here, right before it's used #}
@@ -73,30 +62,23 @@
request its inclusion in a community, generate a DOI for it, and publish it.') }} request its inclusion in a community, generate a DOI for it, and publish it.') }}
{# TODO: extra lines on policy about who gets accepted how for Research-Uploads #} {# TODO: extra lines on policy about who gets accepted how for Research-Uploads #}
</p> </p>
<div id="anchor-unlock-form"> {# will be replaced with ZammadForm when generating it #} <div id="anchor-unlock-form">
<button class="ui fluid button" onclick=" {# will be replaced with ZammadForm when generating it #}
$('#tugraz-unlock-modal') <button class="ui fluid button"
.modal('hide')" onclick=" $('#tugraz-unlock-modal') .modal('hide')">Got it!</button>
>Got it!</button> <button id="generate-unlock-form" class="ui fluid button">{{ _("Request unlocking") }}</button>
<button id="generate-unlock-form" class="ui fluid button">
{{ _("Request unlocking") }}
</button>
</div> </div>
</div> </div>
</div> </div>
{# actual column contents start here #} {# actual column contents start here #}
<div class="ui disabled segment" style="height: 480px"> <div class="ui disabled segment" style="height: 480px">
<h2>{{ _("Research Results") }}</h2> <h2>{{ _("Research Results") }}</h2>
<div class="ui left floated image" style="cursor: pointer" onclick=" <div class="ui left floated image"
$('#tugraz-unlock-modal') style="cursor: pointer"
.modal('show')" onclick=" $('#tugraz-unlock-modal') .modal('show')">
>
<img width="400px" alt="Research Results" src="{{ url_for("static", filename="images/diamond.svg") }}"> <img width="400px" alt="Research Results" src="{{ url_for("static", filename="images/diamond.svg") }}">
</div> </div>
<div class="ui right floated text"> <div class="ui right floated text">{{ _("Overview: Description for research results") }}</div>
{{ _("Overview: Description for research results") }}
</div>
</div> </div>
</div> </div>
{% endif %} {% endif %}
@@ -107,9 +89,7 @@
<a class="ui left floated image" href="/publications/uploads"> <a class="ui left floated image" href="/publications/uploads">
<img width="400px" alt="Publications" src="{{ url_for("static", filename="images/library-book-svgrepo-com.svg") }}"> <img width="400px" alt="Publications" src="{{ url_for("static", filename="images/library-book-svgrepo-com.svg") }}">
</a> </a>
<div> <div>{{ _("Overview: Description for publications") }}</div>
{{ _("Overview: Description for publications") }}
</div>
</div> </div>
</div> </div>
{% endif %} {% endif %}
@@ -119,12 +99,9 @@
<a class="ui left floated image" href="/oer/uploads"> <a class="ui left floated image" href="/oer/uploads">
<img width="400px" alt="Open Educational Resources" src="{{ url_for("static", filename="images/play.svg") }}"> <img width="400px" alt="Open Educational Resources" src="{{ url_for("static", filename="images/play.svg") }}">
</a> </a>
<div> <div>{{ _("Overview: Description for open educational resources") }}</div>
{{ _("Overview: Description for open educational resources") }}
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div>
{%- endblock %} {%- endblock %}

View File

@@ -5,71 +5,50 @@
modify it under the terms of the MIT License; see LICENSE file for more modify it under the terms of the MIT License; see LICENSE file for more
details. details.
#} #}
<!---Recent uploads--> <!---Recent uploads-->
<div class="ten wide column random-records-frontpage"> <div class="ten wide column random-records-frontpage">
<h2>{{ _("Recent uploads") }}</h2> <h2>{{ _("Recent uploads") }}</h2>
{% if not records %} {% if not records %}
<div class="ui centered grid"> <div class="ui centered grid">
<p style="font-size: medium;"> <p style="font-size: medium;">{{ _("There are no public records to show.") }}</p>
{{ _("There are no public records to show.") }}
</p>
</div> </div>
{% endif %} {% endif %}
{%- for r in records %} {%- for r in records %}
{%- set creation_date = r.created | from_isodatetime -%} {%- set creation_date = r.created | from_isodatetime -%}
{%- set record_url = r.original.view %} {%- set record_url = r.original.view %}
<article> <article>
<div class="badges"> <div class="badges">
{# Publication date/Version badge #} {# Publication date/Version badge #}
<span class="ui label blue" data-tooltip="{{ _("Publication date") }}" data-inverted=""> <span class="ui label blue"
{{ r.created_date_l10n_long }} data-tooltip="{{ _("Publication date") }}"
</span> data-inverted="">{{ r.created_date_l10n_long }}</span>
{# Resource type badge #} {# Resource type badge #}
{% if r.metadata.types | length > 0%} {% if r.metadata.types | length > 0 %}
<span class="ui label grey" data-tooltip="{{ _("Resource type") }}" data-inverted=""> <span class="ui label grey"
{{ r.metadata.types[0] }} data-tooltip="{{ _("Resource type") }}"
</span> data-inverted="">{{ r.metadata.types[0] }}</span>
{% endif %} {% endif %}
<span class="ui label access-status {{ r.access_status.id }}" <span class="ui label access-status {{ r.access_status.id }}"
data-tooltip="{{ r.access_status.description_l10n }}" data-tooltip="{{ r.access_status.description_l10n }}"
data-inverted=""> data-inverted="">
<i class="icon {{ r.access_status.icon }}"></i> <i class="icon {{ r.access_status.icon }}"></i>
{{ r.access_status.title_l10n }} {{ r.access_status.title_l10n }}
</span> </span>
<span class="ui label schema" data-tooltip="Schema Type" data-inverted="">{{ r.original.schema_l10n }}</span>
<span class="ui label schema" data-tooltip="Schema Type" data-inverted="">
{{ r.original.schema_l10n }}
</span>
</div> </div>
<h4> <h4>
<a href="{{ record_url }}" class="no-decoration"> <a href="{{ record_url }}" class="no-decoration">{{ r.metadata.titles[0] }}</a>
{{ r.metadata.titles[0] }}
</a>
</h4> </h4>
<p> <p>
{%- for creator in r.metadata.creators %} {%- for creator in r.metadata.creators %}<span>{{ creator }}</span>{%- endfor %}
<span>{{ creator }}</span>
{%- endfor %}
</p> </p>
<p class="hidden-xs"> <p class="hidden-xs">
<a href="{{record_url}}" class="no-decoration"> <a href="{{ record_url }}" class="no-decoration">
{{ r.metadata.descriptions | join(" ") | striptags | truncate(300) }} {{ r.metadata.descriptions | join(" ") | striptags | truncate(300) }}
</a> </a>
</p> </p>
<div class="ui"> <div class="ui">
{%- for subject in r.metadata.subjects %} {%- for subject in r.metadata.subjects %}<span class="ui tiny label">{{ subject }}</span>{%- endfor %}
<span class="ui tiny label">{{ subject }}</span>
{%- endfor %}
<div> <div>
<small> <small>
{# {#
@@ -82,10 +61,10 @@
</div> </div>
</article> </article>
{%- endfor %} {%- endfor %}
{% if records %} {% if records %}
<div class="ui centered grid"> <div class="ui centered grid">
<a class="ui button more" href="{{ url_for("invenio_search_ui.search") }}">{{ _("More") }}</a> <a class="ui button more"
href="{{ url_for("invenio_search_ui.search") }}">{{ _("More") }}</a>
</div> </div>
{%- endif %} {%- endif %}
</div> </div>