Sha256: 8f9d24e0f09e3b173e0c6e73c3a91339897e4bf2efe142588edbc05771a383dc

Contents?: true

Size: 294 Bytes

Versions: 29

Compression:

Stored size: 294 Bytes

Contents

module Gollum
  class Macro
    class Warn < Gollum::Macro
      def render(warning)
        icon = Octicons::Octicon.new('alert', {width: 24, height: 24})
        icon.options[:class] << ' mr-2'
        "<div class='flash flash-warn'>#{icon.to_svg}#{warning}</div>"
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
gollum-lib-5.0.4-java lib/gollum-lib/macro/warn.rb
gollum-lib-5.0.4 lib/gollum-lib/macro/warn.rb
gollum-lib-5.0.3-java lib/gollum-lib/macro/warn.rb
gollum-lib-5.0.3 lib/gollum-lib/macro/warn.rb
gollum-lib-5.0.2-java lib/gollum-lib/macro/warn.rb
gollum-lib-5.0.2 lib/gollum-lib/macro/warn.rb
gollum-lib-5.0.1-java lib/gollum-lib/macro/warn.rb
gollum-lib-5.0.1 lib/gollum-lib/macro/warn.rb
gollum-lib-5.0 lib/gollum-lib/macro/warn.rb