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