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.8 lib/gollum-lib/macro/all_pages.rb
gitlab-gollum-lib-4.2.7.7 lib/gollum-lib/macro/all_pages.rb
gitlab-gollum-lib-4.2.7.6 lib/gollum-lib/macro/all_pages.rb
gollum-lib-4.2.10-java lib/gollum-lib/macro/all_pages.rb
gollum-lib-4.2.10 lib/gollum-lib/macro/all_pages.rb
gollum-lib-4.2.9-java lib/gollum-lib/macro/all_pages.rb
gollum-lib-4.2.9 lib/gollum-lib/macro/all_pages.rb
gollum-lib-5.0.a.4-java lib/gollum-lib/macro/all_pages.rb
gollum-lib-5.0.a.4 lib/gollum-lib/macro/all_pages.rb
gitlab-gollum-lib-4.2.7.5 lib/gollum-lib/macro/all_pages.rb
gitlab-gollum-lib-4.2.7.4 lib/gollum-lib/macro/all_pages.rb
gitlab-gollum-lib-4.2.7.3 lib/gollum-lib/macro/all_pages.rb
gitlab-gollum-lib-4.2.7.2 lib/gollum-lib/macro/all_pages.rb
gitlab-gollum-lib-4.2.7.1 lib/gollum-lib/macro/all_pages.rb
gitlab-gollum-lib-4.2.7 lib/gollum-lib/macro/all_pages.rb
gollum-lib-4.2.7-java lib/gollum-lib/macro/all_pages.rb
gollum-lib-4.2.7 lib/gollum-lib/macro/all_pages.rb
gollum-lib-5.0.a.3-java lib/gollum-lib/macro/all_pages.rb
gollum-lib-5.0.a.3 lib/gollum-lib/macro/all_pages.rb
gollum-lib-5.0.a.2-java lib/gollum-lib/macro/all_pages.rb