Sha256: 844264e37ff1dfc55b5612167e85ba0d4a69bbdde3bec1081c70825fcda34d5d

Contents?: true

Size: 279 Bytes

Versions: 4

Compression:

Stored size: 279 Bytes

Contents

module Precious
  module Views
    class Pages < Layout
      attr_reader :results, :ref

      def title
        "All pages in #{@ref}"
      end

      def has_results
        !@results.empty?
      end

      def no_results
        @results.empty?
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
gollum-2.0.0 lib/gollum/frontend/views/pages.rb
gollum-1.4.3 lib/gollum/frontend/views/pages.rb
gollum-1.4.2 lib/gollum/frontend/views/pages.rb
read-only-gollum-1.4.0 lib/gollum/frontend/views/pages.rb