Sha256: 32ee564825589f2c42ff5396bf393c21f4359489ee8524badec9e3380ee82a27

Contents?: true

Size: 1.22 KB

Versions: 5

Compression:

Stored size: 1.22 KB

Contents

== render 'fae/shared/index_header', title: 'Activity Log', new_button: false

main.content

  == fae_filter_form title: 'Search Changes', action: fae.activity_log_filter_path do
    == fae_filter_select :user, options: Fae::User.all.map { |u| [u.full_name, u.id] }
    == fae_filter_select :model, options: Fae::Change.unique_changeable_types
    == fae_filter_select :type, options: ['created', 'updated', 'deleted']
    == fae_filter_select :date, options: ['Last Hour', 'Last Day', 'Last Week', 'Last Month'], placeholder: 'All Time'

  table.js-results-table
    thead
      tr
        th data-sort="user.first_name" User
        th data-sort="changeable_type" Item
        th data-sort="change_type" Type
        th Attribute(s) Updated
        th data-sort="updated_at" Modified
    tbody
      - if @items.present?
        - @items.each do |change|
          tr
            td = change.user.full_name if change.user.present?
            td = change_item_link(change)
            td = change.change_type
            td = change.updated_attributes.join(', ') if change.updated_attributes.present?
            td = fae_datetime_format(change.updated_at)
      - else
        tr
          td colspan=5 No changes recorded

  == fae_paginate @items

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
fae-railsz-2.1.0 app/views/fae/pages/activity_log.html.slim
fae-rails-2.0.0 app/views/fae/pages/activity_log.html.slim
fae-rails-1.7.1 app/views/fae/pages/activity_log.html.slim
fae-rails-1.7.0 app/views/fae/pages/activity_log.html.slim
fae-rails-1.6.0 app/views/fae/pages/activity_log.html.slim