Sha256: c5efba40ee5a25334ca3b8ae624871a2b54ecb7333f00cddfe4f521b75f19d07

Contents?: true

Size: 547 Bytes

Versions: 8

Compression:

Stored size: 547 Bytes

Contents

<%= content_tag :li, :class => "comment comment-#{comment.id}" do %>
<strong><%= comment.title || nil %></strong>
<div class="byline">
  <% if comment.user %>
    By <%= comment.user.to_s %> at
  <% end %>
<%= comment.created_at.strftime("%m/%d/%Y") %></div>
<div class="comment"><%= comment.comment %></div>

<% if current_user and comment.user == current_user %>
<div>
<%= link_to 'Edit', edit_comment_path(comment) %>
<%= link_to 'Destroy', comment, :confirm => 'Are you sure?', :method => :delete %>
     </div>
   </li>
 <% end %>
 <% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
blacklight_user_generated_content-0.0.8 app/views/comments/_comment.html.erb
blacklight_user_generated_content-0.0.7 app/views/comments/_comment.html.erb
blacklight_user_generated_content-0.0.6 app/views/comments/_comment.html.erb
blacklight_user_generated_content-0.0.5 app/views/comments/_comment.html.erb
blacklight_user_generated_content-0.0.4 app/views/comments/_comment.html.erb
blacklight_user_generated_content-0.0.3 app/views/comments/_comment.html.erb
blacklight_user_generated_content-0.0.2 app/views/comments/_comment.html.erb
blacklight_user_generated_content-0.0.1 app/views/comments/_comment.html.erb