11
11
{%- from "invenio_communities/details/macros/access-status-label.html" import access_status_label -%}
12
12
13
13
< 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 ">
15
15
< div class ="ui container fluid mr-0-mobile ml-0-mobile ">
16
16
< div class ="ui relaxed container grid ">
17
17
< div class ="row pb-0 ">
18
18
< 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 ">
20
20
< 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 ">
22
22
< div class ="flex align-items-center ">
23
23
< div class ="ui rounded image community-image mt-5 rel-mr-2 ">
24
24
< 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 "
28
28
/>
29
29
</ div >
30
30
@@ -37,7 +37,7 @@ <h1 class="ui medium header mb-5">
37
37
38
38
< div >
39
39
< 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 >
41
41
42
42
{% if community.access.visibility == 'restricted' %}
43
43
< div class ="rel-ml-1 ">
@@ -85,15 +85,15 @@ <h1 class="ui medium header mb-0">{{ community.metadata.title }} TEST </h1>
85
85
86
86
{% if ror_id %}
87
87
< 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 "
92
92
>
93
93
< 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 =""
97
97
/>
98
98
</ a >
99
99
{% endif %}
@@ -107,16 +107,18 @@ <h1 class="ui medium header mb-0">{{ community.metadata.title }} TEST </h1>
107
107
</ div >
108
108
109
109
< 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 %}
116
118
{% if permissions.can_moderate %}
117
119
< 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 ">
120
122
< i class ="cog icon " aria-hidden ="true "> </ i >
121
123
{{ _("Manage community") }}
122
124
</ a >
@@ -132,21 +134,21 @@ <h1 class="ui medium header mb-0">{{ community.metadata.title }} TEST </h1>
132
134
</ div >
133
135
</ div >
134
136
< 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 ">
136
138
{% 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
139
141
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 %}
150
152
</ div >
151
153
</ div >
152
154
</ div >
0 commit comments