Sha256: 31e4cfccc3ef490e12b8a72a9b5dac1a2a46f219f64cb60148d6029469619938

Contents?: true

Size: 996 Bytes

Versions: 49

Compression:

Stored size: 996 Bytes

Contents

# -*- encoding : utf-8 -*-
class Card; module Set; class Self; module Recent; extend Card::Set
# ~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/standard/set/self/recent.rb ~~
ACTS_PER_PAGE = 50

view :title do |args|
  super args.merge(title: "Recent Changes")
end

format :html do
  view :core do |args|
    content_tag(:div, class: "history-slot list-group") do
      [history_legend, render_recent_acts(args)].join
    end
  end

  view :recent_acts do |args|
    page = params["page"] || 1
    acts = Act.all_viewable.order(id: :desc).page(page).per(ACTS_PER_PAGE)
    acts.map do |act|
      if (act_card = act.card)
        format = act_card.format :html
        format.render_act args.merge(act: act, act_context: :absolute)
      else
        Rails.logger.info "bad data, act: #{act}"
        ""
      end
    end.join
  end
end


# ~~ below autogenerated; above pulled from /Users/ethan/dev/wagn/gem/card/mod/standard/set/self/recent.rb ~~
end;end;end;end;

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
card-1.99.6 tmpsets/set/mod016-standard/self/recent.rb
card-1.99.5 tmpsets/set/mod016-standard/self/recent.rb
card-1.97.0.1 tmpsets/set/mod016-standard/self/recent.rb
card-1.97.0 tmpsets/set/mod016-standard/self/recent.rb
card-1.96.8 tmpsets/set/mod016-standard/self/recent.rb
card-1.96.7 tmpsets/set/mod016-standard/self/recent.rb
card-1.96.6 tmpsets/set/mod016-standard/self/recent.rb
card-1.96.5 tmpsets/set/mod016-standard/self/recent.rb
card-1.96.4 tmpsets/set/mod016-standard/self/recent.rb
card-1.96.3 tmpsets/set/mod016-standard/self/recent.rb
card-1.96.2 tmpsets/set/mod016-standard/self/recent.rb
card-1.96.1 tmpsets/set/mod016-standard/self/recent.rb
card-1.96.0 tmpsets/set/mod016-standard/self/recent.rb
card-1.95.3 tmpsets/set/mod016-standard/self/recent.rb
card-1.95.2 tmpsets/set/mod016-standard/self/recent.rb
card-1.95.1 tmpsets/set/mod016-standard/self/recent.rb
card-1.95.0 tmpsets/set/mod016-standard/self/recent.rb
card-1.94.1 tmpsets/set/mod016-standard/self/recent.rb
card-1.94.0 tmpsets/set/mod016-standard/self/recent.rb
card-1.93.13 tmpsets/set/mod016-standard/self/recent.rb