align with invenio-app-rdm community changes

This commit is contained in:
Christoph Ladurner
2022-05-19 20:58:20 +02:00
parent 597b8b0905
commit c9ff126c28

View File

@@ -13,61 +13,70 @@
</div> </div>
{% endif %} {% endif %}
<header> <div>
{%- block navbar %} <header>
<nav> {%- block navbar %}
{%- block navbar_header %} <nav>
{%- include "invenio_theme_tugraz/navbar.html" %} {%- block navbar_header %}
{%- endblock navbar_header %} {%- include "invenio_theme_tugraz/navbar.html" %}
{%- 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" id="int-menu-q-home-icon"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg"
version="1.1" xml:space="preserve" height="36.997" width="35.969" version="1.1" xml:space="preserve" height="36.997" width="35.969"
enable-background="new 0 0 595.28 841.89" y="0px" x="0px" xmlns:cc="http://creativecommons.org/ns#" 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"> 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" <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" 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)"> transform="translate(-279.72 -403.28)">
</polyline> </polyline>
</svg> </svg>
{{_ ("Home")}} {{_ ("Home")}}
</span> </span>
</a> </a>
</div> </div>
{%- for item in current_menu.submenu('main').children|sort(attribute='order') if item.visible recursive %} {%- for item in current_menu.submenu('main').children|sort(attribute='order') if item.visible recursive %}
<div class="two wide column main-menu-entry"> <div class="two wide column main-menu-entry">
<a href="{{ item.url }}" class="no-decoration">{{ item.text|safe }}</a> <a role="menuitem" href="{{ item.url }}" class="no-decoration">{{ item.text|safe }}</a>
</div> </div>
{%- endfor %} {% endfor %}
<div class="two wide column main-menu-entry">
<a href="{{ url_for('invenio_app_rdm_records.dashboard') }}" class="no-decoration nowrap-link">{{_ ("My dashboard")}}</a> {% for item in current_menu.submenu('actions').children|sort(attribute='order') if item.visible recursive %}
</div> <div class="two wide column main-menu-entry">
<a role="menuitem" href="{{ item.url }}" class="no-decoration">{{ item.text|safe }}</a>
</div>
{% endfor %}
</div> </div>
<div id="margin-divider" class="ui divider main-menu-underline-line"> <div id="margin-divider" class="ui divider main-menu-underline-line">
</div> </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() }}
{%- endblock %} {%- endblock %}
{# </header>
{#
{%- block breadcrumbs %} {%- block breadcrumbs %}
{%- include "invenio_theme/breadcrumbs.html" %} {%- include "invenio_theme/breadcrumbs.html" %}
{%- endblock breadcrumbs %} {%- endblock breadcrumbs %}
#} #}
</header> </div>