Sha256: 863580feb41091ff9586343eeadfffba563c1281e42aa70119f4573e28829a47

Contents?: true

Size: 730 Bytes

Versions: 3

Compression:

Stored size: 730 Bytes

Contents

<%= content_tag(:article, id: "blog_comment_#{comment.id}", class: "blog_comment") do %>
  <%= content_tag(:div, class: "blog_comment_name", id: "blog_comment_#{comment.id}_name") do %>
    <%= comment.website? ? link_to(comment.name, comment.website) : comment.name %> wrote:
  <% end %>
  

  <%= content_tag(:div, class: "blog_comment_body", 
      id: "blog_comment_#{comment.id}_body") do %>
      <%= format_content comment.body %>      
  <% end %>
  
  <%= blog_comment_tag(:footer) do %>
    Posted on <%= time_tag(post.created_at, Blogit.configuration.datetime_format) %>
  <% end %>
  
  <%= login_required(class: "actions") do %>
    <%= link_to("delete", [post, comment], method: :delete) %>
  <% end %>
  
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
blogit-0.0.12 app/views/blogit/comments/_comment.html.erb
blogit-0.0.11 app/views/blogit/comments/_comment.html.erb
blogit-0.0.10 app/views/blogit/comments/_comment.html.erb