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

Inherits:
Card::Act::ActRenderer show all
Defined in:
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, #collapse_id, #count_types, #deletion_act?, #details, #edited_ago, #header, #initialize, #link_to_act_card, #link_to_history, #method_missing, #render, #respond_to_missing?, #revert_actions_link, #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



26
27
28
# File 'mod/history/lib/card/act/act_renderer/absolute_act_renderer.rb', line 26

def actions
  @act.actions
end


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

def revert_link
  revert_actions_link "revert to previous version", revert_to: :previous,
                      slot_selector: "#main > .card-slot"
end

#subtitleObject



11
12
13
14
15
16
17
18
19
# File '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 'mod/history/lib/card/act/act_renderer/absolute_act_renderer.rb', line 7

def title
  absolute_title
end