- model_class = UserFeedback
- title :index, model_class
- if @user_feedbacks.any?
  = paginate @user_feedbacks
  table.table.table-striped
    thead
      tr
        th= User.model_name.human
        th= model_class.human_attribute_name(:content)
        th= model_class.human_attribute_name(:created_at)
        th.action-header
        th.action-header
    tbody
      - @user_feedbacks.each do |user_feedback|
        tr
          td= link_to user_feedback.user.email, [:admin, user_feedback.user]
          td= user_feedback.content
          td data-time=user_feedback.created_at.iso8601 data-time-format="dd D MMM HH:mm YYYY"
          = edit_td [:admin, user_feedback]
          = destroy_td [:admin, user_feedback]
- else
  = no_content_given model_class
/= link_to t("helpers.links.new"), new_admin_user_path, class: 'btn btn-primary'

