2017-09-29 01:31:22 +02:00
|
|
|
<div class="header portico-header">
|
2017-08-04 02:48:07 +02:00
|
|
|
<div class="header-main" id="top_navbar">
|
|
|
|
<div class="column-left">
|
|
|
|
<div>
|
|
|
|
{% if custom_logo_url %}
|
2017-08-28 23:01:18 +02:00
|
|
|
<a class="brand logo" href="{{ root_domain_uri }}/"><img draggable="false" src="{{ custom_logo_url }}" class="portico-logo" alt="{{ _('Zulip') }}" content="Zulip" /></a>
|
2017-08-04 02:48:07 +02:00
|
|
|
{% else %}
|
2017-08-28 23:01:18 +02:00
|
|
|
<a class="brand logo" href="{{ root_domain_uri }}{% if page_is_help_center %}/help/{% endif %}">
|
2017-08-04 02:48:07 +02:00
|
|
|
<svg class="brand-logo" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 40 40" version="1.1">
|
|
|
|
<g transform="translate(-297.14285,-466.64792)">
|
|
|
|
<circle cx="317.14285" cy="486.64792" r="19.030317" style="fill:#fff;stroke-width:1.93936479;stroke:transparent"></circle>
|
|
|
|
<path d="m309.24286 477.14791 14.2 0 1.6 3.9-11.2 11.9 9.6 0 1.6 3.2-14.2 0-1.6-3.9 11.2-11.9-9.6 0z" style="fill:#52c2af;stroke:#52c2af"></path>
|
|
|
|
</g>
|
|
|
|
</svg>
|
|
|
|
<span>Zulip</span>
|
|
|
|
{% if page_is_help_center %}
|
|
|
|
<div class="light"> <pipe>|</pipe> User Documentation</div>
|
|
|
|
{% endif %}
|
2017-11-08 22:08:23 +01:00
|
|
|
{% if page_is_api_center %}
|
|
|
|
<div class="light"> <pipe>|</pipe> API Documentation</div>
|
|
|
|
{% endif %}
|
2017-08-04 02:48:07 +02:00
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="column-right top-links">
|
2017-09-29 01:31:55 +02:00
|
|
|
{% if user_is_authenticated %}
|
2017-10-26 00:44:11 +02:00
|
|
|
{% include 'zerver/portico-header-dropdown.html' %}
|
2017-09-29 01:31:55 +02:00
|
|
|
{% else %}
|
|
|
|
{% if login_link_disabled %}
|
|
|
|
{% elif not only_sso %}
|
|
|
|
<a href="{{login_url}}">{{ _('Log in') }}</a>
|
|
|
|
{% endif %}
|
2017-08-04 02:48:07 +02:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if register_link_disabled %}
|
|
|
|
{% elif only_sso %}
|
2017-09-29 01:31:55 +02:00
|
|
|
<a href="{{ url('login-sso') }}">{{ _('Log in') }}</a>
|
2017-08-04 02:48:07 +02:00
|
|
|
{% else %}
|
2017-09-29 01:31:55 +02:00
|
|
|
{% if user_is_authenticated %}
|
|
|
|
{% else %}
|
2017-12-14 06:46:57 +01:00
|
|
|
<a href="{{ url('register') }}">{{ _('Sign up') }}</a>
|
2017-09-29 01:31:55 +02:00
|
|
|
{% endif %}
|
2017-08-04 02:48:07 +02:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|