Sha256: 7bfa20bde5eeda5a18a6181d662850d99df09969a305a3066f570a86054ae611

Contents?: true

Size: 891 Bytes

Versions: 1

Compression:

Stored size: 891 Bytes

Contents

<table class="list comments">
  <% @page.comments.each do |c| %>
    <tr>
      <td>
        <p>
          <strong>
            <%= c.name %>
          </strong>
          <br />
          <% if c.email? %>
            <%= mail_to c.email, c.email %>
            <br />
          <% end %>
          <% if c.url? %>
            <%= link_to c.url, c.url %>
            <br />
          <% end %>
        </p>
        <p>
          <%= time_ago_in_words c.created_at %>
          ago<br />
          from <%= c.remote_ip %>
        </p>
        <p>
          <%= link_to("Delete comment",
                      admin_page_comment_url(@locale, @page, c),
                      class: :delete,
                      data: { confirm: "Are you sure?" },
                      method: :delete) %>
        </p>
      </td>
      <td>
        <%= c.body %>
      </td>
    </tr>
  <% end %>
</table>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pages_core-3.5.1 app/views/admin/pages/_edit_comments.html.erb