scinote-web/app/views/projects/index/_header.html.erb
2023-04-24 01:43:47 +04:00

24 lines
1 KiB
Text

<div class="content-header sticky-header">
<div class="title-row">
<i class="fas fa-bars sci--layout--navigator-open p-2 cursor-pointer"></i>
<% if current_folder&.name && @inline_editable_title_config.present? %>
<h1 data-view-mode="active" class="projects-title">
<%= render partial: "shared/inline_editing",
locals: {
initial_value: current_folder.name,
config: @inline_editable_title_config
} %>
</h1>
<% else %>
<h1 data-view-mode="active" class="projects-title name-readonly-placeholder">
<%= current_folder&.name || t('projects.index.head_title') %>
</h1>
<% end %>
<h1 data-view-mode="archived">
<i class="fas fa-archive"></i>&nbsp;
<span class="projects-title name-readonly-placeholder"><%= current_folder&.name || t('projects.index.head_title_archived') %></span>
</h1>
</div>
<div id="toolbarWrapper" class="toolbar-row">
</div>
</div>