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 @@ - <%= link_to "##{faq.id}", admin_faq_path(faq) %> <%= faq.priority %> <%= link_to faq.title, admin_faq_path(faq) %> <%= faq.pretty_body.html_safe %> <%= I18n.l(faq.created_at, format: :short) %> <%= I18n.l(faq.updated_at, format: :short) rescue '-' %> <%= link_to admin_faq_path(faq) do %> <% end %> <%= link_to edit_admin_faq_path(faq) do %> <% end %> <%= link_to admin_faq_path(faq), method: :delete, data: { confirm: 'The FAQ entry is going to be destroyed' } do %> <% end %> 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 @@
<%= link_to new_admin_faq_path, class: "btn btn-default", role: "button" do %> New FAQ <% end %>

FAQ


- <%= render partial: 'faq', collection: @faqs %>
Id Priority Title Body Created at Updated at Actions