diff --git a/app/views/admin/faqs/_faq.html.erb b/app/views/admin/faqs/_faq.html.erb index 65ec986..e547cce 100644 --- a/app/views/admin/faqs/_faq.html.erb +++ b/app/views/admin/faqs/_faq.html.erb @@ -1,20 +1,19 @@ <tr> - <td><%= link_to "##{faq.id}", admin_faq_path(faq) %></td> <td><%= faq.priority %></td> <td><%= link_to faq.title, admin_faq_path(faq) %></td> <td><%= faq.pretty_body.html_safe %></td> <td><%= I18n.l(faq.created_at, format: :short) %></td> <td><%= I18n.l(faq.updated_at, format: :short) rescue '-' %></td> <td> <%= link_to admin_faq_path(faq) do %> <label class="glyphicon glyphicon-eye-open text-primary" alt="show"></label> <% end %> <%= link_to edit_admin_faq_path(faq) do %> <label class="glyphicon glyphicon-edit text-primary" alt="show"></label> <% end %> <%= link_to admin_faq_path(faq), method: :delete, data: { confirm: 'The FAQ entry is going to be destroyed' } do %> <label class="glyphicon glyphicon-remove text-danger" alt="show"></label> <% end %> </td> </tr> diff --git a/app/views/admin/faqs/index.html.erb b/app/views/admin/faqs/index.html.erb index 121ce09..fbc8f2a 100644 --- a/app/views/admin/faqs/index.html.erb +++ b/app/views/admin/faqs/index.html.erb @@ -1,33 +1,32 @@ <div class="row right"> <%= link_to new_admin_faq_path, class: "btn btn-default", role: "button" do %> <label class="glyphicon glyphicon-plus text-primary"></label> New FAQ <% end %> </div> <h3>FAQ</h3> <br /> <div class="row"> <div class="col-xs-12"> <div class="table-responsive"> <table class="table table-striped table-bordered table-condensed"> <thead> <tr> - <th>Id</th> <th>Priority</th> <th class="col-xs-2">Title</th> <th class="col-xs-7">Body</th> <th>Created at</th> <th>Updated at</th> <th>Actions</th> </tr> </thead> <tbody> <%= render partial: 'faq', collection: @faqs %> </tbody> </table> </div> </div> </div>