2023-10-18 09:18:12 +02:00
<div class="navbar-dropdown-menu" id="gear-menu-dropdown" aria-labelledby="settings-dropdown" data-simplebar>
<ul class="navbar-dropdown-menu-outer-list">
2023-10-19 20:44:47 +02:00
<li class="org-info navbar-dropdown-menu-outer-list-item">
<ul class="navbar-dropdown-menu-inner-list">
<li class="org-name navbar-dropdown-menu-inner-list-item"> {{ realm_name }} </li>
<li class="org-url navbar-dropdown-menu-inner-list-item"> {{ realm_url }} </li>
2023-10-18 09:18:12 +02:00
{{ # if is_self_hosted }}
2023-10-19 20:44:47 +02:00
<li class="org-version navbar-dropdown-menu-inner-list-item">
<a href="#about-zulip" class="navigate-link-on-enter navbar-dropdown-menu-link"> {{ version_display_string }} </a>
2023-10-18 09:18:12 +02:00
</li>
{{ # if server_needs_upgrade }}
2023-10-19 20:44:47 +02:00
<li class="org-upgrade navbar-dropdown-menu-inner-list-item">
<a href="https://zulip.readthedocs.io/en/stable/production/upgrade.html" target="_blank" rel="noopener noreferrer" class="navigate-link-on-enter navbar-dropdown-menu-link"> {{ t 'Upgrade to the latest release' }} </a>
2023-10-18 09:18:12 +02:00
</li>
{{ / if }}
{{ else }}
2023-10-19 20:44:47 +02:00
<li class="org-plan navbar-dropdown-menu-inner-list-item hidden-for-spectators">
2023-10-18 09:18:12 +02:00
{{ # if is_plan_limited }}
2023-10-19 20:44:47 +02:00
<a href="/plans/" target="_blank" rel="noopener noreferrer" class="navigate-link-on-enter navbar-dropdown-menu-link">Zulip Cloud Free</a>
2023-10-18 09:18:12 +02:00
{{ else if is_plan_standard }}
2023-10-19 20:44:47 +02:00
<a href="/plans/" target="_blank" rel="noopener noreferrer" class="navigate-link-on-enter navbar-dropdown-menu-link">Zulip Cloud Standard</a>
2023-10-18 09:18:12 +02:00
{{ else if is_plan_standard_sponsored_for_free }}
2023-10-19 20:44:47 +02:00
<a href="/plans/" target="_blank" rel="noopener noreferrer" class="navigate-link-on-enter navbar-dropdown-menu-link">Zulip Cloud Standard (sponsored)</a>
2023-11-04 15:52:46 +01:00
{{ else if is_plan_plus }}
<a href="/plans/" target="_blank" rel="noopener noreferrer" class="navigate-link-on-enter navbar-dropdown-menu-link">Zulip Cloud Plus</a>
2023-10-18 09:18:12 +02:00
{{ / if }}
</li>
{{ / if }}
2023-11-21 20:58:09 +01:00
{{ # if ( and ( not is_self_hosted ) user_has_billing_access ( not is_plan_standard_sponsored_for_free ) ) }}
2023-11-04 14:24:55 +01:00
{{ # if sponsorship_pending }}
<li class="org-upgrade navbar-dropdown-menu-inner-list-item">
<a href="/sponsorship/" target="_blank" rel="noopener noreferrer" class="navigate-link-on-enter navbar-dropdown-menu-link"> {{ t "Sponsorship request pending" }} </a>
</li>
{{ else }}
{{ # if is_plan_limited }}
<li class="org-upgrade navbar-dropdown-menu-inner-list-item">
<a href="/upgrade/" target="_blank" rel="noopener noreferrer" class="navigate-link-on-enter navbar-dropdown-menu-link"> {{ t "Upgrade to {standard_plan_name}" }} </a>
</li>
{{ / if }}
2023-11-06 12:20:05 +01:00
{{ # unless is_org_on_paid_plan }}
{{ # if is_education_org }}
<li class="org-upgrade navbar-dropdown-menu-inner-list-item">
<a href="/sponsorship/" target="_blank" rel="noopener noreferrer" class="navigate-link-on-enter navbar-dropdown-menu-link"> {{ t 'Request education pricing' }} </a>
</li>
{{ else if ( not is_business_org ) }}
<li class="org-upgrade navbar-dropdown-menu-inner-list-item">
<a href="/sponsorship/" target="_blank" rel="noopener noreferrer" class="navigate-link-on-enter navbar-dropdown-menu-link"> {{ t 'Request sponsorship' }} </a>
</li>
{{ / if }}
{{ / unless }}
2023-11-04 14:24:55 +01:00
{{ / if }}
2023-10-18 09:18:12 +02:00
{{ / if }}
2023-11-30 07:03:25 +01:00
{{ # if ( and is_development_environment show_remote_billing ) }}
{{! This is only shown in development environment until the UI is ready. Added to help test the flow directly from gear menu.}}
{{! TODO: Add these above with proper conditions once the UI is ready. }}
<li class="org-upgrade navbar-dropdown-menu-inner-list-item">
<a href="/self-hosted-billing/?next_page=sponsorship" target="_blank" rel="noopener noreferrer" class="navigate-link-on-enter navbar-dropdown-menu-link"> {{ t "Request sponsorship" }} </a>
</li>
<li class="org-upgrade navbar-dropdown-menu-inner-list-item">
<a href="/self-hosted-billing/?next_page=upgrade" target="_blank" rel="noopener noreferrer" class="navigate-link-on-enter navbar-dropdown-menu-link"> {{ t "Upgrade" }} </a>
</li>
{{ / if }}
2023-10-18 09:18:12 +02:00
</ul>
2023-10-13 00:50:57 +02:00
</li>
2023-10-19 20:44:47 +02:00
<li class="navbar-dropdown-menu-outer-list-item">
<ul class="navbar-dropdown-menu-inner-list">
<li class="link-item navbar-dropdown-menu-inner-list-item hidden-for-spectators">
<a href="#streams/subscribed" class="navigate-link-on-enter navbar-dropdown-menu-link">
2023-11-17 17:53:41 +01:00
<i class="navbar-dropdown-icon zulip-icon zulip-icon-hash" aria-hidden="true"></i> {{ t 'Stream settings' }}
2023-10-18 09:18:12 +02:00
</a>
</li>
2023-10-19 20:44:47 +02:00
<li class="link-item navbar-dropdown-menu-inner-list-item hidden-for-spectators">
<a href="#settings" class="navigate-link-on-enter navbar-dropdown-menu-link">
<i class="navbar-dropdown-icon zulip-icon zulip-icon-tool" aria-hidden="true"></i> {{ t 'Personal settings' }}
2023-10-18 09:18:12 +02:00
</a>
</li>
2023-10-19 20:44:47 +02:00
<li class="link-item navbar-dropdown-menu-inner-list-item admin-menu-item hidden-for-spectators">
<a href="#organization" class="navigate-link-on-enter navbar-dropdown-menu-link">
<i class="navbar-dropdown-icon zulip-icon zulip-icon-building" aria-hidden="true"></i>
2023-10-18 09:18:12 +02:00
<span> {{ t 'Organization settings' }} </span>
</a>
</li>
{{ # unless is_guest }}
2023-10-19 20:44:47 +02:00
<li class="link-item navbar-dropdown-menu-inner-list-item hidden-for-spectators">
<a href="/stats" target="_blank" rel="noopener noreferrer" class="navigate-link-on-enter navbar-dropdown-menu-link">
<i class="navbar-dropdown-icon zulip-icon zulip-icon-bar-chart" aria-hidden="true"></i>
2023-10-18 09:18:12 +02:00
<span> {{ t 'Usage statistics' }} </span>
</a>
</li>
{{ / unless }}
2023-10-19 20:44:47 +02:00
<li class="link-item navbar-dropdown-menu-inner-list-item only-visible-for-spectators">
<a tabindex="0" class="change-language-spectator navbar-dropdown-menu-link">
<i class="navbar-dropdown-icon zulip-icon zulip-icon-f-globe" aria-hidden="true"></i> {{ t 'Select language' }}
2023-10-18 09:18:12 +02:00
</a>
</li>
2023-10-19 20:44:47 +02:00
<li class="link-item navbar-dropdown-menu-inner-list-item gear-menu-select-dark-theme only-visible-for-spectators">
<a tabindex="0" class="navigate-link-on-enter navbar-dropdown-menu-link">
<i class="navbar-dropdown-icon zulip-icon zulip-icon-moon" aria-hidden="true"></i> {{ t 'Switch to dark theme' }}
2023-10-18 09:18:12 +02:00
</a>
</li>
2023-10-19 20:44:47 +02:00
<li class="link-item navbar-dropdown-menu-inner-list-item gear-menu-select-light-theme only-visible-for-spectators">
<a tabindex="0" class="navigate-link-on-enter navbar-dropdown-menu-link">
<i class="navbar-dropdown-icon zulip-icon zulip-icon-sun" aria-hidden="true"></i> {{ t 'Switch to light theme' }}
2023-10-18 09:18:12 +02:00
</a>
</li>
</ul>
2023-10-13 00:50:57 +02:00
</li>
2023-10-19 20:44:47 +02:00
<li class="hidden-for-spectators navbar-dropdown-menu-outer-list-item">
<ul class="navbar-dropdown-menu-inner-list">
<li class="link-item navbar-dropdown-menu-inner-list-item">
<a href=" {{ apps_page_url }} " target="_blank" rel="noopener noreferrer" class="navigate-link-on-enter navbar-dropdown-menu-link">
<i class="navbar-dropdown-icon zulip-icon zulip-icon-monitor" aria-hidden="true"></i> {{ t 'Desktop & mobile apps' }}
2023-10-18 09:18:12 +02:00
</a>
</li>
2023-10-19 20:44:47 +02:00
<li class="link-item navbar-dropdown-menu-inner-list-item">
<a href="/integrations/" target="_blank" rel="noopener noreferrer" class="navigate-link-on-enter navbar-dropdown-menu-link">
<i class="navbar-dropdown-icon zulip-icon zulip-icon-git-pull-request" aria-hidden="true"></i> {{ t 'Integrations' }}
2023-10-18 09:18:12 +02:00
</a>
</li>
2023-10-19 20:44:47 +02:00
<li class="link-item navbar-dropdown-menu-inner-list-item">
<a href="/api" target="_blank" rel="noopener noreferrer" class="navigate-link-on-enter navbar-dropdown-menu-link">
<i class="navbar-dropdown-icon zulip-icon zulip-icon-file-text" aria-hidden="true"></i> {{ t 'API documentation' }}
2023-10-18 09:18:12 +02:00
</a>
</li>
{{ # if show_billing }}
2023-10-19 20:44:47 +02:00
<li class="link-item navbar-dropdown-menu-inner-list-item">
<a href="/billing/" target="_blank" rel="noopener noreferrer" class="navigate-link-on-enter navbar-dropdown-menu-link">
<i class="navbar-dropdown-icon zulip-icon zulip-icon-credit-card" aria-hidden="true"></i> {{ t 'Billing' }}
2023-10-18 09:18:12 +02:00
</a>
</li>
{{ / if }}
2023-11-15 22:44:24 +01:00
{{ # if ( and is_development_environment show_remote_billing ) }}
{{! This is only shown in development environment until the UI is ready.}}
<li class="link-item navbar-dropdown-menu-inner-list-item">
<a href="/self-hosted-billing/" target="_blank" rel="noopener noreferrer" class="navigate-link-on-enter navbar-dropdown-menu-link">
<i class="navbar-dropdown-icon zulip-icon zulip-icon-credit-card" aria-hidden="true"></i> {{ t 'Billing' }}
</a>
</li>
{{ / if }}
2023-10-18 09:18:12 +02:00
{{ # if promote_sponsoring_zulip }}
2023-10-19 20:44:47 +02:00
<li class="link-item navbar-dropdown-menu-inner-list-item">
<a href="https://zulip.com/help/support-zulip-project" target="_blank" rel="noopener noreferrer" class="navigate-link-on-enter navbar-dropdown-menu-link">
<i class="navbar-dropdown-icon zulip-icon zulip-icon-heart" aria-hidden="true"></i> {{ t 'Support Zulip' }}
2023-10-18 09:18:12 +02:00
</a>
</li>
{{ / if }}
{{ # if show_plans }}
2023-10-19 20:44:47 +02:00
<li class="link-item navbar-dropdown-menu-inner-list-item">
<a href="/plans/" target="_blank" rel="noopener noreferrer" class="navigate-link-on-enter navbar-dropdown-menu-link">
<i class="navbar-dropdown-icon fa fa-rocket" aria-hidden="true"></i> {{ t 'Plans and pricing' }}
2023-10-18 09:18:12 +02:00
</a>
</li>
{{ / if }}
</ul>
2023-10-13 00:50:57 +02:00
</li>
2023-11-23 22:04:40 +01:00
{{ # if ( or can_invite_users_by_email can_create_multiuse_invite is_spectator show_webathena ) }}
2023-10-19 20:44:47 +02:00
<li class="navbar-dropdown-menu-outer-list-item">
<ul class="navbar-dropdown-menu-inner-list">
2023-10-18 09:18:12 +02:00
{{ # if ( or can_invite_users_by_email can_create_multiuse_invite ) }}
2023-10-19 20:44:47 +02:00
<li class="link-item navbar-dropdown-menu-inner-list-item">
<a tabindex="0" class="invite-user-link navbar-dropdown-menu-link">
<i class="navbar-dropdown-icon zulip-icon zulip-icon-user-plus" aria-hidden="true"></i> {{ t 'Invite users' }}
2023-10-18 09:18:12 +02:00
</a>
</li>
{{ / if }}
{{ # if show_webathena }}
2023-10-19 20:44:47 +02:00
<li class="link-item navbar-dropdown-menu-inner-list-item" title=" {{ t 'Grant Zulip the Kerberos tickets needed to run your Zephyr mirror via Webathena' }} " id="webathena_login_menu">
<a href="#webathena" class="webathena_login navbar-dropdown-menu-link">
<i class="navbar-dropdown-icon fa fa-bolt" aria-hidden="true"></i> {{ t 'Link with Webathena' }}
2023-10-18 09:18:12 +02:00
</a>
</li>
{{ / if }}
2023-10-19 20:44:47 +02:00
<li class="link-item navbar-dropdown-menu-inner-list-item only-visible-for-spectators">
<a href=" {{ log in _ link }} " class="navigate-link-on-enter navbar-dropdown-menu-link">
2023-12-04 18:57:47 +01:00
<i class="navbar-dropdown-icon zulip-icon zulip-icon-log-in" aria-hidden="true"></i> {{ t 'Log in' }}
2023-10-18 09:18:12 +02:00
</a>
</li>
</ul>
2023-10-13 00:50:57 +02:00
</li>
2023-11-23 22:04:40 +01:00
{{ / if }}
2023-10-18 09:18:12 +02:00
</ul>
</div>