card view comment (#540)

This commit is contained in:
Divya Baid
2019-04-20 08:19:06 +05:30
committed by Jeffrey Warren
parent db40d37282
commit 0617dd2080

View File

@@ -1,5 +1,5 @@
<div id="c<%= comment.id %>" class="comment" data-comment-id="<%= comment.id %>">
<div class="comment-header">
<div class="comment-header" style="margin-bottom: 0;border-bottom-left-radius: 0;border-bottom-right-radius: 0;border-bottom: 0; background-color: #f8f8f8">
<div class="row">
<div class="col-6">
<a href="//publiclab.org/profile/<%= comment.author %>"><%= comment.author %></a>
@@ -27,7 +27,7 @@
</div>
</div>
</div><!-- .comment-header -->
<div class="comment-body" data-comment-id="<%= comment.id %>"><%=raw markdown_to_html(comment.body) %></div><!-- .comment-body -->
<div class="comment-body" style="border: 1px solid #e7e7e7;padding: 18px; margin-bottom: 20px;" data-comment-id="<%= comment.id %>"><%=raw markdown_to_html(comment.body) %></div><!-- .comment-body -->
<div class="comment-edit-form" data-comment-id="<%= comment.id %>" style="display:none">
<%= form_for([@map, comment]) do |f| %>
<%= f.text_area :body, :class => "form-control" %>