Sha256: 5a184e4f88ed041385038a06ed38ef424bec9428235fee1b34a4639637c537f7

Contents?: true

Size: 748 Bytes

Versions: 8

Compression:

Stored size: 748 Bytes

Contents

<div class="comment">
  <div class="created_at">
    <%= resource.created_at.strftime("%d.%m.%Y %H:%M:%S") %> <%= resource.name %> 
    (<%= link_to resource.user.name, resource.user %>)
  </div>
  <div class="content">
    <%= markdown resource.text %>
  </div>
  <div class="actions">
    <%= link_to t('comments.show.reply'), eval(
      "new_#{resource.commentable_type.tableize.singularize}_comment_path(resource.commentable, comment: { parent_id: resource.id })" 
    ), class: 'new_comment' %> |
    <%= link_to t('general.edit'), edit_comment_path(resource), class: 'edit_comment' %> |
    <%= link_to t('general.destroy'), resource, confirm: t('general.questions.are_you_sure'), method: :delete, class: 'destroy_comment' %>
  </div>
</div>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
voluntary-0.1.0 app/views/comments/_resource.html.erb
voluntary-0.1.0.rc4 app/views/comments/_resource.html.erb
voluntary-0.1.0.rc3 app/views/comments/_resource.html.erb
voluntary-0.1.0.rc2 app/views/comments/_resource.html.erb
voluntary-0.1.0.rc1 app/views/comments/_resource.html.erb
voluntary-0.0.3 app/views/comments/_resource.html.erb
voluntary-0.0.2 app/views/comments/_resource.html.erb
voluntary-0.0.1 app/views/comments/_resource.html.erb