Files
nairobi/app/views/legislation/annotations/show.html.erb
Javi Martín f864156b21 Add and apply ClosingErbTagIndent ERB Lint rule
Note this rule does still allow us to add new lines after opening tags;
it just makes sure that if we do, we also add it in closing tags.
Likewise, if we don't add it in the opening tag, it forces us not to add
it in the closing tag either.

I don't have a strong preference about either style; in these cases I've
chosen the latter because it seemed more common in our code.
2021-02-05 17:39:42 +01:00

52 lines
2.2 KiB
Plaintext

<% provide :title do %>
<%= "#{t("legislation.annotations.show.title")} - #{@draft_version.title} - #{@process.title}" %>
<% end %>
<%= render "legislation/processes/header", process: @process, header: :small %>
<%= render "legislation/processes/key_dates", process: @process, phase: :allegations_phase %>
<div class="column row">
<div class="draft-panels small-12 column row">
<%= render "version_chooser", process: @process, draft_version: @draft_version %>
<%= render "legislation/processes/help_gif" %>
<div class="legislation-comment">
<div class="annotation-comment">
<div class="row annotation-share-comment">
<div class="small-12 medium-9 column">
<strong><%= t("legislation.annotations.index.comments_about") %></strong>
<div class="comment-section">
<div class="row">
<div class="small-12 medium-9 column legislation-comment">
<%= sanitize(@annotation.context).presence || @annotation.quote %>
</div>
<div class="small-12 medium-3 column legislation-comment">
<span class="float-right">
<%= link_to legislation_process_draft_version_path(@process, @draft_version, anchor: "annotation-id-#{@annotation.id}") do %>
<span><%= t("legislation.annotations.index.see_in_context") %></span> <span class="icon-expand" aria-hidden="true"></span>
<% end %>
</span>
</div>
</div>
</div>
</div>
<aside class="small-12 medium-3 column">
<div class="sidebar-divider"></div>
<h2><%= t("legislation.shared.share") %></h2>
<%= render "/shared/social_share",
title: t("legislation.shared.share_comment", version_name: @draft_version.title.downcase, process_name: @process.title),
url: legislation_process_draft_version_annotations_path(@process, @draft_version) %>
</aside>
</div>
<%= render "/comments/comment_tree", comment_tree: @comment_tree,
display_comments_count: true %>
</div>
</div>
</div>
</div>