mirror of
https://github.com/dgtlmoon/changedetection.io.git
synced 2026-07-11 01:37:27 +00:00
62 lines
3.7 KiB
HTML
62 lines
3.7 KiB
HTML
{# Menu items template - used for both desktop and mobile menus #}
|
|
{# CSS media queries handle which version displays - no need for conditional classes #}
|
|
|
|
|
|
{% if current_user.is_authenticated or not has_password %}
|
|
{% if not current_diff_url %}
|
|
<li class="pure-menu-item" id="menu-pause">
|
|
<a class="status-pill {{ 'paused' if all_paused }}" href="{{ url_for('settings.toggle_all_paused') }}" aria-label="{% if all_paused %}{{ _('Resume automatic scheduling') }}{% else %}{{ _('Pause auto-queue scheduling of watches') }}{% endif %}" title="{% if all_paused %}{{ _('Scheduling paused — click to resume') }}{% else %}{{ _('Scheduling active — click to pause all') }}{% endif %}"><span class="live-dot"></span>{% if all_paused %}{{ _('Paused') }}{% else %}{{ _('Live') }}{% endif %}</a>
|
|
</li>
|
|
<li class="pure-menu-item " id="menu-mute">
|
|
<a class="status-pill {{ 'muted' if all_muted }}" href="{{ url_for('settings.toggle_all_muted') }}" aria-label="{% if all_muted %}{{ _('Unmute notifications') }}{% else %}{{ _('Mute notifications') }}{% endif %}" title="{% if all_muted %}{{ _('Notifications are muted - click to unmute') }}{% else %}{{ _('Mute notifications') }}{% endif %}"><i data-feather="{{ 'bell-off' if all_muted else 'bell' }}" class="action-icon"></i>{% if all_muted %}{{ _('Muted') }}{% else %}{{ _('Alerts on') }}{% endif %}</a>
|
|
</li>
|
|
{%- if current_user.is_authenticated -%}
|
|
<li class="pure-menu-item menu-collapsible">
|
|
<a href="{{ url_for('logout', redirect=request.path) }}" ><i data-feather="log-out" class="action-icon"></i> {{ _('Log out') }}</a>
|
|
</li>
|
|
{%- endif -%}
|
|
|
|
<li class="pure-menu-item " id="menu-settings">
|
|
<a href="{{ url_for('settings.settings_page') }}" title="{{ _('Settings') }}"><i data-feather="settings" class="action-icon"></i> <span>{{ ('Settings') }}</span></a>
|
|
</li>
|
|
<li class="pure-menu-item " id="menu-ui-language">
|
|
<a class="language-selector"><span class="{{ get_flag_for_locale(get_locale()) }}" id="language-selector-flag"></span></a>
|
|
</li>
|
|
|
|
{% else %}
|
|
<li class="pure-menu-item menu-collapsible">
|
|
<a href="{{ url_for('ui.ui_edit.edit_page', uuid=uuid, next='diff') }}"
|
|
class="pure-menu-link">{{ _('EDIT') }}</a>
|
|
</li>
|
|
{% endif %}
|
|
|
|
{% else %}
|
|
<li class="pure-menu-item menu-collapsible">
|
|
<a class="pure-menu-link" href="https://changedetection.io">{{ _('Website Change Detection and Notification.') }}</a>
|
|
</li>
|
|
{% endif %}
|
|
<li class="pure-menu-item menu-collapsible" id="inline-menu-extras-group">
|
|
{% if current_user.is_authenticated or not has_password %}
|
|
{% if not current_diff_url %}
|
|
{% if not llm_features_disabled %}
|
|
<button class="toggle-button toggle-ai-mode" type="button" title="{{ _('Toggle AI Mode') }}" data-llm-configured="{{ 'true' if llm_configured else 'false' }}" data-llm-settings-url="{{ url_for('settings.settings_page') }}#ai">
|
|
<span class="visually-hidden">{{ _('Toggle AI mode') }}</span>
|
|
{% include "svgs/ai-mode-icon.svg" %}<span class="ai-mode-label">LLM</span>
|
|
</button>
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
<button class="toggle-button toggle-light-mode " type="button" title="{{ _('Toggle Light/Dark Mode') }}">
|
|
<span class="visually-hidden">{{ _('Toggle light/dark mode') }}</span>
|
|
<span class="icon-light"><i data-feather="sun"></i></span>
|
|
<span class="icon-dark"><i data-feather="moon"></i></span>
|
|
</button>
|
|
<a class="github-link" href="https://github.com/dgtlmoon/changedetection.io"
|
|
target="_blank"
|
|
rel="noopener" title="GitHub">
|
|
<i data-feather="github"></i>
|
|
</a>
|
|
</li>
|
|
|