Sha256: 38f1eeedd7281041961f7874a2ea648e56c6d5336a9a2d5a5de4a1dee56ebe1b

Contents?: true

Size: 817 Bytes

Versions: 1

Compression:

Stored size: 817 Bytes

Contents

<h3>Comments</h3>
<%#= link_to fa_icon("plus-square", text: "Add Comment", class: "fa-fw"), [:new, organization, project, finish, :comment] %>

<div class="comments">
  <% comments.each do |comment| %>
    <div class="row">
      <% if comment.user == current_user %>
        <div class="right">
          <%#= link_to fa_icon("pencil", text: "Edit", class: "fa-fw"), [:edit, organization, project, finish, comment] %>
        </div>
      <% end %>
      <h4>
        <%= comment.user.name %> - <%= l comment.created_at, format: :date_and_time %>
        <% if comment.updated? %>
          <i>(edited <%= l comment.updated_at, format: :date_and_time %>)</i>
        <% end %>
      </h4>

      <div class="panel callout radius">
        <%= simple_format comment.body %>
      </div>
    </div>
  <% end %>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
self_systeem-0.1.0 test/dummy_app/app/views/shared/comments/_comments.html.erb