Sha256: 8005173b8ffe034404f1d9edda5877f8aba3e8ad78036b21b097858d70f2120b

Contents?: true

Size: 728 Bytes

Versions: 32

Compression:

Stored size: 728 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

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

        def actions
          @act.actions
        end
      end
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
card-1.93.8 mod/history/lib/card/act/act_renderer/absolute_act_renderer.rb
card-1.93.7 mod/history/lib/card/act/act_renderer/absolute_act_renderer.rb
card-1.93.6 mod/history/lib/card/act/act_renderer/absolute_act_renderer.rb
card-1.93.5 mod/history/lib/card/act/act_renderer/absolute_act_renderer.rb
card-1.93.4 mod/history/lib/card/act/act_renderer/absolute_act_renderer.rb
card-1.93.3 mod/history/lib/card/act/act_renderer/absolute_act_renderer.rb
card-1.93.2 mod/history/lib/card/act/act_renderer/absolute_act_renderer.rb
card-1.93.1 mod/history/lib/card/act/act_renderer/absolute_act_renderer.rb
card-1.93.0 mod/history/lib/card/act/act_renderer/absolute_act_renderer.rb
card-1.92.2 mod/history/lib/card/act/act_renderer/absolute_act_renderer.rb
card-1.92.1 mod/history/lib/card/act/act_renderer/absolute_act_renderer.rb
card-1.92 mod/history/lib/card/act/act_renderer/absolute_act_renderer.rb