Sha256: b79c3e9600a8e26f8bb7e588f48c08de688995f3d1a67a1e81c89a689d0f1e2d

Contents?: true

Size: 1.28 KB

Versions: 4

Compression:

Stored size: 1.28 KB

Contents

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

.main_content-sections
  section.main_content-section
    .main_content-section-area

      == fae_filter_form title: 'Seach 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: @items.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.index_table.main_table-sort_columns
        thead
          tr
            th User
            th Item
            th Type
            th Attribute(s) Updated
            th Updated At
        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"

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fae-rails-1.2.5 app/views/fae/pages/activity_log.html.slim
fae-rails-1.2.4 app/views/fae/pages/activity_log.html.slim
fae-rails-1.2.3 app/views/fae/pages/activity_log.html.slim
fae-rails-1.2.2 app/views/fae/pages/activity_log.html.slim