],
[
'label' => _T("Saved searches"),
- 'title' => _T("Saved searches"),
'route' => [
'name' => 'searches'
]
],
[
'label' => _T("Manage statuses"),
- 'title' => _T("Manage statuses"),
'route' => [
'name' => 'entitleds',
'args' => ['class' => 'status'],
'items' => [
[
'label' => _T("Members list"),
- 'title' => _T("Members list"),
'route' => [
'name' => 'publicList',
'args' => ['type' => 'list']
],
[
'label' => _T("Trombinoscope"),
- 'title' => _T("Trombinoscope"),
'route' => [
'name' => 'publicList',
'args' => ['type' => 'trombi']
{% set public_menus = callstatic('\\Galette\\Core\\Galette', 'getPublicMenus') %}
{% for public_menu in public_menus %}
{% for public_item in public_menu.items %}
- {{ menus_macros.renderMenuItem(public_item.label, public_item.title, public_item.route, public_item.icon ?? null, null, tips_position, mode) }}
+ {{ menus_macros.renderMenuItem(public_item.label, public_item.title ?? null, public_item.route, public_item.icon ?? null, null, tips_position, mode) }}
{% endfor %}
{% endfor %}
{% if preferences.pref_bool_selfsubscribe == true and not is_current_url("subscribe") %}
{% set public_items = public_items|merge([{
'label': _T("Subscribe"),
- 'title': _T("Subscribe"),
'route': {'name': 'subscribe'},
'icon': 'add user',
'class': 'ui basic button'
{% if not is_current_url("login") %}
{% set public_items = public_items|merge([{
'label': _T("Login"),
- 'title': _T("Login"),
'route': {'name': 'slash'},
'icon': 'sign in alt',
'class': 'ui primary button'
{% endif %}
{% for public_item in public_items %}
- {{ menus_macros.renderMenuItem(public_item.label, public_item.title, public_item.route, public_item.icon, public_item.class, tips_position, mode) }}
+ {{ menus_macros.renderMenuItem(public_item.label, public_item.title ?? null, public_item.route, public_item.icon, public_item.class, tips_position, mode) }}
{% endfor %}
<a
href="#"
<i class="dropdown icon" aria-hidden="true"></i>
<div class="menu">
{% for item in items %}
- {{ _self.renderMenuItem(item.label, item.title, item.route, item.icon ?? null, null, 'right center') }}
+ {{ _self.renderMenuItem(item.label, item.title ?? null, item.route, item.icon ?? null, null, 'right center') }}
{% endfor %}
</div>
</div>
</div>
<div class="content{% if cur_route in my_routes %} active{% endif %}">
{% for item in items %}
- {{ _self.renderMenuItem(item.label, item.title, item.route, item.icon ?? null, null, null, mode) }}
+ {{ _self.renderMenuItem(item.label, item.title ?? null, item.route, item.icon ?? null, null, null, mode) }}
{% endfor %}
</div>
</div>
<a
href="{{ url_for(route.name, route.args|default([])) }}"
class="{{ class }}"
- title="{{ title }}"
+ {% if title %}title="{{ title }}"{% endif %}
{% if tips_position %}data-position="{{ tips_position }}"{% endif %}
{% if mode != "default" %}tabindex="-1"{% endif %}
>
</a>
{% endif %}
{% if login.isAdmin() or login.isStaff() %}
- <a href="{{ url_for("add_group", {"name": "NAME"}) }}" class="ui labeled icon fluid button tooltip" id="newgroup" title="{{ _T("New group") }}">
+ <a href="{{ url_for("add_group", {"name": "NAME"}) }}" class="ui labeled icon fluid button tooltip" id="newgroup">
<i class="plus circle green icon" aria-hidden="true"></i>
{{ _T("New group") }}
</a>
<a
href="{{ url_for('password-lost') }}"
class="password-lost"
- title="{{ _T("Lost your password?") }}"
>
<i class="icon unlock alt" aria-hidden="true"></i>
{{ _T("Lost your password?") }}