class Card::Act::ActRenderer::RelativeActRenderer

Use for the history for one specific card It shows only the actions of an act that are relevant for the card of the format that renders the act.

Public Instance Methods

actions() click to toggle source
# File lib/card/act/act_renderer/relative_act_renderer.rb, line 45
def actions
  @actions ||= @act.actions_affecting(@card)
end
current_act?() click to toggle source
# File lib/card/act/act_renderer/relative_act_renderer.rb, line 39
def current_act?
  return unless @format.card.last_act && @act

  @act.id == @format.card.last_act.id
end
subtitle() click to toggle source
# File lib/card/act/act_renderer/relative_act_renderer.rb, line 14
def subtitle
  return "" unless @act.card_id != @format.card.id

  wrap_with :small, "act on #{absolute_title}"
end
title() click to toggle source
# File lib/card/act/act_renderer/relative_act_renderer.rb, line 8
def title
  %(<span class="nr">##{@args[:act_seq]}</span>) +
    accordion_expand_link(@act.actor.name) +
    wrap_with(:small, edited_ago)
end