Sha256: db5c4ac40bbabb70ec09cd54b1279a4fdd8eadf68967fde0b2c748d591d48e3e
Contents?: true
Size: 662 Bytes
Versions: 5
Compression:
Stored size: 662 Bytes
Contents
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
Version data entries
5 entries across 5 versions & 1 rubygems