Skip to content

Commit 7f9cdd9

Browse files
committed
horizon: fix template
1 parent 282d6bd commit 7f9cdd9

File tree

2 files changed

+37
-36
lines changed

2 files changed

+37
-36
lines changed

templates/themes/horizon/invenio_app_rdm/footer.html

-1
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,3 @@ <h2 class="ui small header">{{ _("Integrations") }}</h2>
6969

7070
</div>
7171

72-
</div>

templates/themes/horizon/invenio_communities/details/header.html

+37-35
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,20 @@
1111
{%- from "invenio_communities/details/macros/access-status-label.html" import access_status_label -%}
1212

1313
<div
14-
class="ui container fluid page-subheader-outer with-submenu rel-pt-2 ml-0-mobile mr-0-mobile">
14+
class="ui container fluid page-subheader-outer with-submenu rel-pt-2 ml-0-mobile mr-0-mobile">
1515
<div class="ui container fluid mr-0-mobile ml-0-mobile">
1616
<div class="ui relaxed container grid">
1717
<div class="row pb-0">
1818
<div
19-
class="sixteen wide mobile sixteen wide tablet thirteen wide computer column">
19+
class="sixteen wide mobile sixteen wide tablet thirteen wide computer column">
2020
<div
21-
class="community-header flex align-items-center column-mobile align-items-start-mobile">
21+
class="community-header flex align-items-center column-mobile align-items-start-mobile">
2222
<div class="flex align-items-center">
2323
<div class="ui rounded image community-image mt-5 rel-mr-2">
2424
<img
25-
src="{{ community.links.logo | resolve_community_logo(community.id) }}"
26-
alt=""
27-
class="rel-mb-1"
25+
src="{{ community.links.logo | resolve_community_logo(community.id) }}"
26+
alt=""
27+
class="rel-mb-1"
2828
/>
2929
</div>
3030

@@ -37,7 +37,7 @@ <h1 class="ui medium header mb-5">
3737

3838
<div>
3939
<div class="flex align-items-center mb-5 tablet computer only">
40-
<h1 class="ui medium header mb-0">{{ community.metadata.title }} TEST </h1>
40+
<h1 class="ui medium header mb-0">{{ community.metadata.title }} </h1>
4141

4242
{% if community.access.visibility == 'restricted' %}
4343
<div class="rel-ml-1">
@@ -85,15 +85,15 @@ <h1 class="ui medium header mb-0">{{ community.metadata.title }} TEST </h1>
8585

8686
{% if ror_id %}
8787
<a
88-
href="https://ror.org/{{ ror_id }}"
89-
aria-label="{{ name }}'s ROR {{ _('profile') }}"
90-
title="{{ name }}'s ROR {{ _('profile') }}"
91-
target="_blank"
88+
href="https://ror.org/{{ ror_id }}"
89+
aria-label="{{ name }}'s ROR {{ _('profile') }}"
90+
title="{{ name }}'s ROR {{ _('profile') }}"
91+
target="_blank"
9292
>
9393
<img
94-
class="inline-id-icon"
95-
src="{{ url_for('static', filename='images/ror-icon.svg') }}"
96-
alt=""
94+
class="inline-id-icon"
95+
src="{{ url_for('static', filename='images/ror-icon.svg') }}"
96+
alt=""
9797
/>
9898
</a>
9999
{% endif %}
@@ -107,16 +107,18 @@ <h1 class="ui medium header mb-0">{{ community.metadata.title }} TEST </h1>
107107
</div>
108108

109109
<div
110-
class="sixteen wide mobile sixteen wide tablet three wide computer right aligned middle aligned column">
111-
<a href="/uploads/new?community={{ community.slug }}"
112-
class="ui positive button labeled icon rel-mt-1 theme-secondary">
113-
<i class="upload icon" aria-hidden="true"></i>
114-
{{ _("New upload") }}
115-
</a>
110+
class="sixteen wide mobile sixteen wide tablet three wide computer right aligned middle aligned column">
111+
{%- if not community_use_jinja_header %}
112+
<a href="/uploads/new?community={{ community.slug }}"
113+
class="ui positive button labeled icon rel-mt-1 theme-secondary">
114+
<i class="upload icon" aria-hidden="true"></i>
115+
{{ _("New upload") }}
116+
</a>
117+
{% endif %}
116118
{% if permissions.can_moderate %}
117119
<a
118-
href="{{ url_for('administration.communities', q='slug:'+community.slug) }}"
119-
class="ui button labeled icon rel-mt-1">
120+
href="{{ url_for('administration.communities', q='slug:'+community.slug) }}"
121+
class="ui button labeled icon rel-mt-1">
120122
<i class="cog icon" aria-hidden="true"></i>
121123
{{ _("Manage community") }}
122124
</a>
@@ -132,21 +134,21 @@ <h1 class="ui medium header mb-0">{{ community.metadata.title }} TEST </h1>
132134
</div>
133135
</div>
134136
<div
135-
class="ui container fluid secondary pointing stackable menu pl-0 pr-0 theme-primary mt-0 mr-0-mobile ml-0-mobile">
137+
class="ui container fluid secondary pointing stackable menu pl-0 pr-0 theme-primary mt-0 mr-0-mobile ml-0-mobile">
136138
{% if community_menu_active %}
137-
<div class="ui container">
138-
{% for item in current_menu.submenu('communities').children
139+
<div class="ui container">
140+
{% for item in current_menu.submenu('communities').children
139141
if (item.permissions == True or permissions[item.permissions]) and item.visible %}
140-
<a
141-
class="item {{ 'active' if active_community_header_menu_item == item.name }} {{ 'disabled' if not item.url }}"
142-
href="{{ item.url }}"
143-
>
144-
<i aria-hidden="true" class="{{ item.icon }} icon"></i>
145-
{{ item.text }}
146-
</a>
147-
{% endfor %}
148-
</div>
149-
{% endif %}
142+
<a
143+
class="item {{ 'active' if active_community_header_menu_item == item.name }} {{ 'disabled' if not item.url }}"
144+
href="{{ item.url }}"
145+
>
146+
<i aria-hidden="true" class="{{ item.icon }} icon"></i>
147+
{{ item.text }}
148+
</a>
149+
{% endfor %}
150+
</div>
151+
{% endif %}
150152
</div>
151153
</div>
152154
</div>

0 commit comments

Comments
 (0)