zulip/web/templates/gear_menu_popover.hbs

153 lines
10 KiB
Handlebars

<div class="navbar-dropdown-menu" id="gear-menu-dropdown" aria-labelledby="settings-dropdown" data-simplebar>
<ul class="navbar-dropdown-menu-outer-list">
<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>
{{#if is_self_hosted }}
<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>
</li>
{{#if server_needs_upgrade }}
<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>
</li>
{{/if}}
{{else}}
<li class="org-plan navbar-dropdown-menu-inner-list-item hidden-for-spectators">
{{#if is_plan_limited }}
<a href="/plans/" target="_blank" rel="noopener noreferrer" class="navigate-link-on-enter navbar-dropdown-menu-link">Zulip Cloud Free</a>
{{else if is_plan_standard}}
<a href="/plans/" target="_blank" rel="noopener noreferrer" class="navigate-link-on-enter navbar-dropdown-menu-link">Zulip Cloud Standard</a>
{{else if is_plan_standard_sponsored_for_free}}
<a href="/plans/" target="_blank" rel="noopener noreferrer" class="navigate-link-on-enter navbar-dropdown-menu-link">Zulip Cloud Standard (sponsored)</a>
{{/if}}
</li>
{{/if}}
{{#if (and is_plan_limited is_owner) }}
<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}}
{{#if is_plan_limited }}
{{#if is_education_org }}
<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 'Request education pricing' }}</a>
</li>
{{else if (not is_business_org) }}
<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 'Request sponsorship' }}</a>
</li>
{{/if}}
{{/if}}
</ul>
</li>
<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">
<i class="navbar-dropdown-icon zulip-icon zulip-icon-hash" aria-hidden="true"></i> {{t 'Manage streams' }}
</a>
</li>
<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' }}
</a>
</li>
<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>
<span>{{t 'Organization settings' }}</span>
</a>
</li>
{{#unless is_guest}}
<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>
<span>{{t 'Usage statistics' }}</span>
</a>
</li>
{{/unless}}
<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' }}
</a>
</li>
<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' }}
</a>
</li>
<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' }}
</a>
</li>
</ul>
</li>
<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' }}
</a>
</li>
<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' }}
</a>
</li>
<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' }}
</a>
</li>
{{#if show_billing}}
<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' }}
</a>
</li>
{{/if}}
{{#if promote_sponsoring_zulip}}
<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' }}
</a>
</li>
{{/if}}
{{#if show_plans}}
<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' }}
</a>
</li>
{{/if}}
</ul>
</li>
<li class="navbar-dropdown-menu-outer-list-item">
<ul class="navbar-dropdown-menu-inner-list">
{{#if (or can_invite_users_by_email can_create_multiuse_invite)}}
<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' }}
</a>
</li>
{{/if}}
{{#if show_webathena}}
<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' }}
</a>
</li>
{{/if}}
<li class="link-item navbar-dropdown-menu-inner-list-item only-visible-for-spectators">
<a href="{{login_link}}" class="navigate-link-on-enter navbar-dropdown-menu-link">
<i class="navbar-dropdown-icon zulip-icon zulip-icon-power" aria-hidden="true"></i> {{t 'Log in' }}
</a>
</li>
</ul>
</li>
</ul>
</div>