Class: Card::Act::ActRenderer::AbsoluteActRenderer

Inherits:
Card::Act::ActRenderer show all
Defined in:
card-mod-history/lib/card/act/act_renderer/absolute_act_renderer.rb

Overview

Used for recent changes. It shows all actions of an act

Instance Method Summary collapse

Methods inherited from Card::Act::ActRenderer

#absolute_title, #accordion_expand_link, #accordion_expand_options, #act_accordion, #act_accordion_body, #act_accordion_heading, #act_accordion_panel, #act_links, #act_panel_options, #act_type, #action_header?, #approved_actions, #autosaved_draft_link, #collapse_id, #count_types, #deletion_act?, #details, #edited_ago, #header, #initialize, #link_to_act_card, #link_to_history, #method_missing, #render, #respond_to_missing?, #rollback_link, #show_or_hide_changes_link, #summary

Methods included from Bootstrapper

#bootstrap, #bs

Methods included from Bootstrap::ComponentLoader

#components, #include_component, #load_components, #to_const

Constructor Details

This class inherits a constructor from Card::Act::ActRenderer

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Card::Act::ActRenderer

Instance Method Details

#actionsObject



28
29
30
# File 'card-mod-history/lib/card/act/act_renderer/absolute_act_renderer.rb', line 28

def actions
  @act.actions
end

FIXME: how do we know we need main here??



22
23
24
25
26
# File 'card-mod-history/lib/card/act/act_renderer/absolute_act_renderer.rb', line 22

def revert_link
  revert_actions_link "revert to previous",
                      { revert_to: :previous, revert_act: @act.id },
                      "data-slot-selector": "#main > .card-slot"
end

#subtitleObject



11
12
13
14
15
16
17
18
19
# File 'card-mod-history/lib/card/act/act_renderer/absolute_act_renderer.rb', line 11

def subtitle
  wrap_with :small do
    [
      @format.link_to_card(@act.actor, nil, class: "_stop_propagation"),
      edited_ago,
      rollback_link
    ]
  end
end

#titleObject



7
8
9
# File 'card-mod-history/lib/card/act/act_renderer/absolute_act_renderer.rb', line 7

def title
  absolute_title
end