2017-11-14 15:31:44 -06:00
|
|
|
<%= replace_plugin_html('server:simple-header') do %>
|
|
|
|
<header class="d-header">
|
|
|
|
<div class="wrap">
|
2020-02-25 07:31:04 -06:00
|
|
|
<div class="contents clearfix">
|
|
|
|
<div class="title">
|
|
|
|
<a href="<%= path "/" %>">
|
|
|
|
<%- if application_logo_url.present? %>
|
2021-09-16 16:47:51 -05:00
|
|
|
<picture>
|
|
|
|
<%- if application_logo_dark_url.present? %>
|
|
|
|
<source srcset="<%= application_logo_dark_url %>" media="(prefers-color-scheme: dark)" />
|
|
|
|
<%- end %>
|
|
|
|
<img src="<%= application_logo_url %>" alt="<%= SiteSetting.title %>" id="site-logo" />
|
|
|
|
</picture>
|
2020-02-25 07:31:04 -06:00
|
|
|
<%- else %>
|
|
|
|
<h2 id='site-text-logo'><%= SiteSetting.title %></h2>
|
|
|
|
<%- end %>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="panel clearfix">
|
2019-08-08 07:57:18 -05:00
|
|
|
<%- unless current_user || local_assigns[:hide_auth_buttons] %>
|
2020-02-25 07:31:04 -06:00
|
|
|
<span class='header-buttons'>
|
2019-07-08 18:21:19 -05:00
|
|
|
<%- if can_sign_up? %>
|
2020-02-25 07:31:04 -06:00
|
|
|
<a href="<%= path "/signup"%>" class='btn btn-primary btn-small sign-up-button'><%= I18n.t('sign_up') %></a>
|
2019-07-08 18:21:19 -05:00
|
|
|
<%- end %>
|
2019-08-08 04:44:04 -05:00
|
|
|
<a href="<%= path "/login"%>" class='btn btn-primary btn-small login-button btn-icon-text'><%= SvgSprite.raw_svg('fa-user') %><%= I18n.t('log_in') %></a>
|
2020-02-25 07:31:04 -06:00
|
|
|
</span>
|
2019-07-08 18:21:19 -05:00
|
|
|
<%- end %>
|
2015-02-25 10:35:47 -06:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-11-14 15:31:44 -06:00
|
|
|
</header>
|
|
|
|
<% end %>
|