2017-11-14 15:31:44 -06:00
|
|
|
<%= replace_plugin_html('server:simple-header') do %>
|
|
|
|
<header class="d-header">
|
|
|
|
<div class="wrap">
|
|
|
|
<div class="contents">
|
2019-07-08 18:21:19 -05:00
|
|
|
<div class="header-row">
|
2018-11-23 01:04:34 -06:00
|
|
|
<div class="logo-wrapper">
|
2017-11-14 15:31:44 -06:00
|
|
|
<a href="<%= path "/" %>">
|
|
|
|
<%- if application_logo_url.present? %>
|
2018-11-23 08:04:42 -06:00
|
|
|
<img src="<%= application_logo_url %>" alt="<%= SiteSetting.title %>" id="site-logo">
|
2017-11-14 15:31:44 -06:00
|
|
|
<%- else %>
|
|
|
|
<h2 id='site-text-logo'><%= SiteSetting.title %></h2>
|
|
|
|
<%- end %>
|
|
|
|
</a>
|
|
|
|
</div>
|
2019-07-08 18:21:19 -05:00
|
|
|
<%- unless current_user %>
|
|
|
|
<div class='auth-buttons'>
|
|
|
|
<%- if can_sign_up? %>
|
|
|
|
<a href="<%= path "/signup"%>" class='btn btn-primary btn-small signup-button'><%= I18n.t('sign_up') %></a>
|
|
|
|
<%- end %>
|
|
|
|
<a href="<%= path "/login"%>" class='btn btn-primary btn-small login-button'><%= I18n.t('log_in') %></a>
|
|
|
|
</div>
|
|
|
|
<%- end %>
|
2015-02-25 10:35:47 -06:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-11-14 15:31:44 -06:00
|
|
|
</header>
|
|
|
|
<% end %>
|