2017-11-15 05:31:44 +08:00
|
|
|
<%= replace_plugin_html('server:simple-header') do %>
|
|
|
|
<header class="d-header">
|
|
|
|
<div class="wrap">
|
|
|
|
<div class="contents">
|
2019-07-09 07:21:19 +08:00
|
|
|
<div class="header-row">
|
2018-11-23 15:04:34 +08:00
|
|
|
<div class="logo-wrapper">
|
2017-11-15 05:31:44 +08:00
|
|
|
<a href="<%= path "/" %>">
|
|
|
|
<%- if application_logo_url.present? %>
|
2018-11-23 22:04:42 +08:00
|
|
|
<img src="<%= application_logo_url %>" alt="<%= SiteSetting.title %>" id="site-logo">
|
2017-11-15 05:31:44 +08:00
|
|
|
<%- else %>
|
|
|
|
<h2 id='site-text-logo'><%= SiteSetting.title %></h2>
|
|
|
|
<%- end %>
|
|
|
|
</a>
|
|
|
|
</div>
|
2019-08-08 20:57:18 +08:00
|
|
|
<%- unless current_user || local_assigns[:hide_auth_buttons] %>
|
2019-07-09 07:21:19 +08:00
|
|
|
<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 %>
|
2019-08-08 17:44:04 +08: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>
|
2019-07-09 07:21:19 +08:00
|
|
|
</div>
|
|
|
|
<%- end %>
|
2015-02-26 00:35:47 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-11-15 05:31:44 +08:00
|
|
|
</header>
|
|
|
|
<% end %>
|