Sha256: 364a9084870de362c3946bfd6a25383309b905553c465372f38ebf96a65a2318

Contents?: true

Size: 2 KB

Versions: 9

Compression:

Stored size: 2 KB

Contents

<% content_for :page_heading do %>
  <h2>
    <i class="glyphicon glyphicon-large glyphicon-comment"></i>
    <%= t(".feedback") %>
  </h2>
<% end %>

<%= render 'shared/flash', flash: flash %>
<%= form_tag({action: 'index'}, method: :get, class: 'form-inline') do %>
  <p>
    <%= link_to(t(".all"), {controller: 'admin/feedback', action: :index}, {class: 'label label-default'}) %>
    <%= link_to(t(".unapproved_comments"), {controller: 'admin/feedback', action: :index, only: 'unapproved'}, {class: 'label label-info'}) %>
    <%= link_to(t(".presumed_ham"), {controller: 'admin/feedback', action: :index, only: 'presumed_ham'}, {class: 'label label-primary'}) %>
    <%= link_to(t(".ham"), {controller: 'admin/feedback', action: :index, only: 'ham'}, {class: 'label label-success'}) %>
    <%= link_to(t(".presumed_spam"), {controller: 'admin/feedback', action: :index, only: 'presumed_spam'}, {class: 'label label-warning'}) %>
    <%= link_to(t(".spam"), {controller: 'admin/feedback', action: :index, only: 'spam'}, {class: 'label label-danger'}) %>
  </p>
<% end %>

<%= form_tag({:action => 'bulkops'}, {class: 'form-inline'}) do %>

  <%= hidden_field_tag "page", params[:page]%>

  <%= render 'button', { :position => 'top' } %>
  <table class='table hover'>
    <thead>
      <tr class='noborder'>
        <th colspan='5'>
          <input type="checkbox" name="checkall" id="checkall" onclick="check_all(this);">
          <%= t(".select_all") %>
        </th>
      </tr>
    </thead>
    <% if @feedback.empty? %>
      <tr>
        <td colspan="5">
          <%= t(".no_feedback") %>
        </td>
      </tr>
    <% end %>
    <% @feedback.each do |comment| %>
      <%= render 'feedback', {:comment => comment} %>
    <% end %>
    <%= display_pagination(@feedback, 5) %>
    <tr>
      <th><input type="checkbox" name="checkall" id="checkall" onclick="check_all(this);"></th>
      <th colspan='4'><%= t(".select_all") %></th>
    </tr>
  </table>
  <%= render 'button', { position: 'bottom' } %>
<% end %>

<br class='clear'>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
publify_core-9.1.0 app/views/admin/feedback/index.html.erb
publify_core-9.0.1 app/views/admin/feedback/index.html.erb
publify_core-9.0.0 app/views/admin/feedback/index.html.erb
publify_core-9.0.0.pre6 app/views/admin/feedback/index.html.erb
publify_core-9.0.0.pre5 app/views/admin/feedback/index.html.erb
publify_core-9.0.0.pre4 app/views/admin/feedback/index.html.erb
publify_core-9.0.0.pre3 app/views/admin/feedback/index.html.erb
publify_core-9.0.0.pre2 app/views/admin/feedback/index.html.erb
publify_core-9.0.0.pre1 app/views/admin/feedback/index.html.erb