2021-01-25 22:36:23 +08:00
|
|
|
<div class="content-header sticky-header">
|
|
|
|
<div class="title-row">
|
2023-05-18 19:43:26 +08:00
|
|
|
<i class="sn-icon sn-icon-navigator sci--layout--navigator-open cursor-pointer p-1.5 border rounded border-sn-light-grey mr-4"></i>
|
2021-07-22 03:33:13 +08:00
|
|
|
<% if current_folder&.name && @inline_editable_title_config.present? %>
|
|
|
|
<h1 data-view-mode="active" class="projects-title">
|
|
|
|
<%= render partial: "shared/inline_editing",
|
|
|
|
locals: {
|
2023-03-14 01:00:30 +08:00
|
|
|
initial_value: current_folder.name,
|
2021-07-22 03:33:13 +08:00
|
|
|
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 %>
|
2021-02-05 18:04:58 +08:00
|
|
|
<h1 data-view-mode="archived">
|
|
|
|
<i class="fas fa-archive"></i>
|
2021-03-09 05:01:26 +08:00
|
|
|
<span class="projects-title name-readonly-placeholder"><%= current_folder&.name || t('projects.index.head_title_archived') %></span>
|
2021-02-05 18:04:58 +08:00
|
|
|
</h1>
|
2020-12-08 15:30:47 +08:00
|
|
|
</div>
|
2023-06-01 18:20:56 +08:00
|
|
|
<div id="toolbarWrapper" class="toolbar-row" data-width-breakpoint="700">
|
2021-01-25 22:36:23 +08:00
|
|
|
</div>
|
2020-12-08 15:30:47 +08:00
|
|
|
</div>
|