Skip to content

Commit

Permalink
Add in old template (commented out)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlandauer committed Sep 25, 2023
1 parent f9ba03f commit eb50ff6
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions app/views/_tailwind/comments/_comment.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,65 @@
</div>
</div>
</article>

<%
=begin
%>
<figure class="comment-item panel" id="comment<%= comment.id %>">
<%= render "comments/location_heading", comment: comment if with_address %>
<div class="panel-body">
<figcaption class="comment-meta comment-heading">
<%= render "comments/meta_sentence", comment: %>
</figcaption>
<blockquote class="comment-text">
<% if comment.visible? %>
<%= comment_as_html(comment.text) %>
<% else %>
<em>Hidden by site administrators</em>
<% end %>
</blockquote>
<% if comment.visible? %>
<footer>
<p class="comment-meta">
<% if comment.last_delivered_successfully.nil? %>
sent to the planning authority
<% else %>
<%= link_to comment.last_delivered_successfully ? "delivered to the planning authority" : "there was a problem delivering this to the planning authority", %>
{ anchor: "delivery-info-#{comment.id}" }, class: "hideable", data: { target: "#delivery-info-#{comment.id}" }
<% end %>
<% end %>
</p>
<div class="comment-actions">
<%= render "comments/actions", comment: %>
</div>
<p class="comment-meta hideable-target" id="delivery-info-<%= comment.id %>">
<% if comment.last_delivered_successfully.nil? %>
<% # %>
Don't display any extra message if the comment has been sent but not yet delivered
Do we want to stick with this?
<% end %>
<% elsif comment.last_delivered_successfully %>
This comment was successfully delivered to the
email server of
<%= comment.application.comment_authority_with_fallback %>
at
<%= comment.last_delivered_at %>
<% else %>
The comment was hard bounced by the email server of
<%= comment.application.comment_authority_with_fallback %>
at
<%= comment.last_delivered_at %>
Please follow up by
<%= link_to "contacting us", documentation_contact_path %>
so that we can try to help resolve this issue
<% end %>
</p>
</footer>
<% end %>
</div>
</figure>
<%
=end
%>

0 comments on commit eb50ff6

Please sign in to comment.