diff --git a/app/views/_tailwind/comments/_comment.html.erb b/app/views/_tailwind/comments/_comment.html.erb index 749997b1c..ce124f6e3 100644 --- a/app/views/_tailwind/comments/_comment.html.erb +++ b/app/views/_tailwind/comments/_comment.html.erb @@ -4,28 +4,35 @@
-
- <%= comment_as_html(comment.text) %> -
+ <% if comment.visible? %> +
+ <%= comment_as_html(comment.text) %> +
- <%# TODO: Smaller line height? %> -
- <%= comment.name %> -
-
- <%= time_tag comment.confirmed_at do %> - <%= time_ago_in_words(comment.confirmed_at).capitalize %> ago - <% end %> -
- <%# TODO: Add disclosure icon %> - <%# TODO: Make it work %> - <%# TODO: Progressive enhancement? %> - <%# TODO: Make this show the correct thing %> -
Delivered to the planning authority
-
- <%# TODO: Link to correct place %> - <%= link_to "Report this comment", "#", class: "text-fuchsia text-xl underline" %> -
+ <%# TODO: Smaller line height? %> +
+ <%= comment.name %> +
+
+ <%= time_tag comment.confirmed_at do %> + <%= time_ago_in_words(comment.confirmed_at).capitalize %> ago + <% end %> +
+ <%# TODO: Add disclosure icon %> + <%# TODO: Make it work %> + <%# TODO: Progressive enhancement? %> + <%# TODO: Make this show the correct thing %> +
Delivered to the planning authority
+
+ <%# TODO: Link to correct place %> + <%= link_to "Report this comment", "#", class: "text-fuchsia text-xl underline" %> +
+ <% else %> + <%# TODO: Show hidden comment in a way that matches design %> +
+ Hidden by site administrators +
+ <% end %>