Sha256: 12b1f6d582d5f4dcd1a0b505fb06ff6a721a0ada77e5feb422b54ac069602e25

Contents?: true

Size: 838 Bytes

Versions: 11

Compression:

Stored size: 838 Bytes

Contents

class Card
  class Act
    class ActRenderer
      # Used for recent changes.
      # It shows all actions of an act
      class AbsoluteActRenderer < ActRenderer
        def title
          absolute_title
        end

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

        # FIXME: how do we know we need main here??
        def revert_link
          revert_actions_link "revert to previous",
                              { revert_to: :previous, revert_act: @act.id },
                              { "data-slot-selector": "#main > .card-slot" }
        end

        def actions
          @act.actions
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
card-mod-history-0.14.2 lib/card/act/act_renderer/absolute_act_renderer.rb
card-mod-history-0.14.1 lib/card/act/act_renderer/absolute_act_renderer.rb
card-mod-history-0.14.0 lib/card/act/act_renderer/absolute_act_renderer.rb
card-mod-history-0.13.4 lib/card/act/act_renderer/absolute_act_renderer.rb
card-mod-history-0.13.3 lib/card/act/act_renderer/absolute_act_renderer.rb
card-mod-history-0.13.2 lib/card/act/act_renderer/absolute_act_renderer.rb
card-mod-history-0.13.1 lib/card/act/act_renderer/absolute_act_renderer.rb
card-mod-history-0.13.0 lib/card/act/act_renderer/absolute_act_renderer.rb
card-mod-history-0.11.7 lib/card/act/act_renderer/absolute_act_renderer.rb
card-mod-history-0.12.0 lib/card/act/act_renderer/absolute_act_renderer.rb
card-mod-history-0.11.6 lib/card/act/act_renderer/absolute_act_renderer.rb