Sha256: 662642664559e868f945555e79e47b3ac0f45fd3537a9fee6870601ed4406b33

Contents?: true

Size: 728 Bytes

Versions: 2

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

2 entries across 2 versions & 1 rubygems

Version Path
card-1.97.0.1 mod/history/lib/card/act/act_renderer/absolute_act_renderer.rb
card-1.97.0 mod/history/lib/card/act/act_renderer/absolute_act_renderer.rb