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.2.4-java lib/gollum-lib/macro/warn.rb
gollum-lib-5.2.4 lib/gollum-lib/macro/warn.rb
gollum-lib-5.2.3-java lib/gollum-lib/macro/warn.rb
gollum-lib-5.2.3 lib/gollum-lib/macro/warn.rb
gollum-lib-5.2.2-java lib/gollum-lib/macro/warn.rb
gollum-lib-5.2.2 lib/gollum-lib/macro/warn.rb
gollum-lib-5.2.1-java lib/gollum-lib/macro/warn.rb
gollum-lib-5.2.1 lib/gollum-lib/macro/warn.rb
gollum-lib-5.2-java lib/gollum-lib/macro/warn.rb
gollum-lib-5.2 lib/gollum-lib/macro/warn.rb
gollum-lib-5.1.3-java lib/gollum-lib/macro/warn.rb
gollum-lib-5.1.3 lib/gollum-lib/macro/warn.rb
gollum-lib-5.1.1-java lib/gollum-lib/macro/warn.rb
gollum-lib-5.1.1 lib/gollum-lib/macro/warn.rb
gollum-lib-5.1-java lib/gollum-lib/macro/warn.rb
gollum-lib-5.1 lib/gollum-lib/macro/warn.rb
gollum-lib-5.0.6-java lib/gollum-lib/macro/warn.rb
gollum-lib-5.0.6 lib/gollum-lib/macro/warn.rb
gollum-lib-5.0.5-java lib/gollum-lib/macro/warn.rb
gollum-lib-5.0.5 lib/gollum-lib/macro/warn.rb