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.96.8 mod/history/lib/card/act/act_renderer/absolute_act_renderer.rb
card-1.96.7 mod/history/lib/card/act/act_renderer/absolute_act_renderer.rb
card-1.96.6 mod/history/lib/card/act/act_renderer/absolute_act_renderer.rb
card-1.96.5 mod/history/lib/card/act/act_renderer/absolute_act_renderer.rb
card-1.96.4 mod/history/lib/card/act/act_renderer/absolute_act_renderer.rb
card-1.96.3 mod/history/lib/card/act/act_renderer/absolute_act_renderer.rb
card-1.96.2 mod/history/lib/card/act/act_renderer/absolute_act_renderer.rb
card-1.96.1 mod/history/lib/card/act/act_renderer/absolute_act_renderer.rb
card-1.96.0 mod/history/lib/card/act/act_renderer/absolute_act_renderer.rb
card-1.95.3 mod/history/lib/card/act/act_renderer/absolute_act_renderer.rb
card-1.95.2 mod/history/lib/card/act/act_renderer/absolute_act_renderer.rb
card-1.95.1 mod/history/lib/card/act/act_renderer/absolute_act_renderer.rb
card-1.95.0 mod/history/lib/card/act/act_renderer/absolute_act_renderer.rb
card-1.94.1 mod/history/lib/card/act/act_renderer/absolute_act_renderer.rb
card-1.94.0 mod/history/lib/card/act/act_renderer/absolute_act_renderer.rb
card-1.93.13 mod/history/lib/card/act/act_renderer/absolute_act_renderer.rb
card-1.93.12 mod/history/lib/card/act/act_renderer/absolute_act_renderer.rb
card-1.93.11 mod/history/lib/card/act/act_renderer/absolute_act_renderer.rb
card-1.93.10 mod/history/lib/card/act/act_renderer/absolute_act_renderer.rb
card-1.93.9 mod/history/lib/card/act/act_renderer/absolute_act_renderer.rb