scinote-web/app/views/my_modules/_header.html.erb

23 lines
1,013 B
Text
Raw Normal View History

<div class="content-header sticky-header my-module-header">
2023-06-06 18:36:57 +08:00
<div class="my-module-title-row 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>
2023-05-15 20:17:41 +08:00
<h1 class="my_module-name" data-toggle="tooltip" data-placement="bottom" title="<%= @my_module.name %>">
<% if @my_module.archived_branch? %>
<span class="whitespace-nowrap"><%= t('labels.archived')%></span>&nbsp;
2023-05-15 20:17:41 +08:00
<% end %>
<% if @inline_editable_title_config.present? %>
<%= render partial: "shared/inline_editing",
locals: {
initial_value: @my_module.name,
config: @inline_editable_title_config
} %>
<% else %>
<div class="name-readonly-placeholder">
<%= @my_module.name %>
</div>
<% end %>
</h1>
</div>
</div>
<%= stylesheet_link_tag 'my_modules/shared/layout_overrides' %>