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
gitlab-gollum-lib-4.2.7.10.gitlab.2 lib/gollum-lib/macro/all_pages.rb
gollum-lib-5.1.1-java lib/gollum-lib/macro/all_pages.rb
gollum-lib-5.1.1 lib/gollum-lib/macro/all_pages.rb
gollum-lib-5.1-java lib/gollum-lib/macro/all_pages.rb
gollum-lib-5.1 lib/gollum-lib/macro/all_pages.rb
gitlab-gollum-lib-4.2.7.10.gitlab.1 lib/gollum-lib/macro/all_pages.rb
gollum-lib-5.0.6-java lib/gollum-lib/macro/all_pages.rb
gollum-lib-5.0.6 lib/gollum-lib/macro/all_pages.rb
gollum-lib-5.0.5-java lib/gollum-lib/macro/all_pages.rb
gollum-lib-5.0.5 lib/gollum-lib/macro/all_pages.rb
gitlab-gollum-lib-4.2.7.9 lib/gollum-lib/macro/all_pages.rb
gollum-lib-5.0.4-java lib/gollum-lib/macro/all_pages.rb
gollum-lib-5.0.4 lib/gollum-lib/macro/all_pages.rb
gollum-lib-5.0.3-java lib/gollum-lib/macro/all_pages.rb
gollum-lib-5.0.3 lib/gollum-lib/macro/all_pages.rb
gollum-lib-5.0.2-java lib/gollum-lib/macro/all_pages.rb
gollum-lib-5.0.2 lib/gollum-lib/macro/all_pages.rb
gollum-lib-5.0.1-java lib/gollum-lib/macro/all_pages.rb
gollum-lib-5.0.1 lib/gollum-lib/macro/all_pages.rb
gollum-lib-5.0 lib/gollum-lib/macro/all_pages.rb