scinote-web/app/views/shareable_links/my_modules/_comments_sidebar.html.erb
ajugo 44c919d3dc
Implement shareable link task view [SCI-8752] (#5843)
* Implement shareable link task view [SCI-8752]
2023-07-26 15:19:32 +02:00

29 lines
1.1 KiB
Text

<div class="comments-sidebar !top-0 !h-screen" id="Step<%= step.id %>">
<div class="sidebar-content">
<div class="sidebar-header">
<div class="comments-subject-title">
<%= "#{step.position + 1} #{step.name}" %>
</div>
<div class="btn btn-light icon-btn close-btn">
<i class="sn-icon sn-icon-close"></i>
</div>
<div class="comments-subject-url">
<%= link_to(t('comments.step_url'), "#stepContainer#{step.id}", class: 'scroll-page-with-anchor') %>
</div>
</div>
<div class="sidebar-body">
<% if step.comments.present? %>
<div class="comments-list">
<%= render partial: "shareable_links/my_modules/comments_list", locals: { step: step } %>
</div>
<% else %>
<div class="no-comments-placeholder !block">
<%= image_tag 'comments/placeholder.svg', class: 'no-comments-image' %>
<h1><%= t('comments.empty_state.title') %></h1>
<p class="description"><%= t('comments.empty_state.description') %></p>
</div>
<% end %>
</div>
<div class="sidebar-footer"></div>
</div>
</div>