Sha256: 74ca789ab217209e373e8d3720c12ffb8b3843f9c94dcd89ad94332290088e36
Contents?: true
Size: 1.79 KB
Versions: 2
Compression:
Stored size: 1.79 KB
Contents
# -*- encoding : utf-8 -*- class Card; module Set; class All; module History; # Set: All cards (History, Views) # # History views module Views; extend Card::Set def self.source_location; "/Users/ethan/dev/decko/gem/card-mod-history/set/all/history/views.rb"; end module HtmlFormat; module_parent.send :register_set_format, Card::Format::HtmlFormat, self; extend Card::Set::AbstractFormat view :history, cache: :never do frame do class_up "d0-card-body", "history-slot" acts_layout card.history_acts, :relative, :show end end view :act, cache: :never do act_listing act_from_context end view :act_legend do bs_layout do row md: [12, 12], lg: [7, 5] do col action_legend col content_legend, class: "text-right" end end end view :draft_legend do "#{action_icon(:draft)} unsaved draft" end view :action_summary do action_content action_from_context, :summary end view :action_expanded do action_content action_from_context, :expanded end view :change do voo.show :title_link voo.hide :menu wrap do [_render_title, _render_menu, _render_last_action] end end view :last_action do %( <span class="last-update"> #{render_last_action_verb} #{render_acted_at} ago by #{nest card.last_actor, view: :link} </span> ) end view :last_action_verb, cache: :never do return unless (act = card.last_act) return unless (action = act.action_on card.id) case action.action_type when :create then "added" when :delete then "deleted" else link_to_view :history, "edited", class: "last-edited", rel: "nofollow" end end end end;end;end;end;end; # ~~ generated from /Users/ethan/dev/decko/gem/card-mod-history/set/all/history/views.rb ~~
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
card-1.101.7 | tmpsets/set/mod012-card-mod-history/all/history/views.rb |
card-1.101.6 | tmpsets/set/mod012-card-mod-history/all/history/views.rb |