Sha256: 99524e81c903b82b5d719eb6ba3455d512df863bae94b287dbacf25f2affd804

Contents?: true

Size: 242 Bytes

Versions: 61

Compression:

Stored size: 242 Bytes

Contents

module Gollum
  class Macro
    class AllPages < Gollum::Macro
      def render
        if @wiki.pages.size > 0
          '<ul id="pages">' + @wiki.pages.map { |p| "<li>#{p.name}</li>" }.join + '</ul>'
        end
      end
    end
  end
end

Version data entries

61 entries across 61 versions & 2 rubygems

Version Path
gollum-lib-5.0.a.2 lib/gollum-lib/macro/all_pages.rb
gollum-lib-4.2.5-java lib/gollum-lib/macro/all_pages.rb
gollum-lib-4.2.5 lib/gollum-lib/macro/all_pages.rb
gollum-lib-5.0.a.1-java lib/gollum-lib/macro/all_pages.rb
gollum-lib-5.0.a.1 lib/gollum-lib/macro/all_pages.rb
gollum-lib-4.2.4-java lib/gollum-lib/macro/all_pages.rb
gollum-lib-4.2.3-java lib/gollum-lib/macro/all_pages.rb
gollum-lib-4.2.3 lib/gollum-lib/macro/all_pages.rb
gollum-lib-4.2.2-java lib/gollum-lib/macro/all_pages.rb
gollum-lib-4.2.2 lib/gollum-lib/macro/all_pages.rb
gollum-lib-4.2.1-java lib/gollum-lib/macro/all_pages.rb
gollum-lib-4.2.1 lib/gollum-lib/macro/all_pages.rb
gollum-lib-4.2.0-java lib/gollum-lib/macro/all_pages.rb
gollum-lib-4.2.0 lib/gollum-lib/macro/all_pages.rb
gollum-lib-4.1.0-java lib/gollum-lib/macro/all_pages.rb
gollum-lib-4.1.0 lib/gollum-lib/macro/all_pages.rb
gollum-lib-4.0.3-java lib/gollum-lib/macro/all_pages.rb
gollum-lib-4.0.3 lib/gollum-lib/macro/all_pages.rb
gollum-lib-4.0.2 lib/gollum-lib/macro/all_pages.rb
gollum-lib-4.0.1 lib/gollum-lib/macro/all_pages.rb