scinote-web/app/views/experiments/_show_header.html.erb
2023-06-08 10:33:37 +04:00

21 lines
884 B
Text

<div class="content-header sticky-header">
<div class="title-row">
<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>
<h1 class="experimnet-name" data-toggle="tooltip" data-placement="bottom" title="<%= @experiment.name %>">
<% if @experiment.archived? %>
<span><%= t('labels.archived')%></span>&nbsp;
<% end %>
<% if @inline_editable_title_config.present? %>
<%= render partial: "shared/inline_editing",
locals: {
initial_value: @experiment.name,
config: @inline_editable_title_config
} %>
<% else %>
<div class="name-readonly-placeholder">
<%= @experiment.name %>
</div>
<% end %>
</h1>
</div>
</div>