Sha256: ed047bacc685eb00f094230850e869453e8c12937d252928834d1f713900546b

Contents?: true

Size: 317 Bytes

Versions: 73

Compression:

Stored size: 317 Bytes

Contents

module Precious
  module Views
    class Search < Layout
      attr_reader :content, :page, :footer, :results, :query

      def title
        "Search results for " + @query
      end

      def has_results
        !@results.empty?
      end

      def no_results
        @results.empty?
      end

    end
  end
end

Version data entries

73 entries across 73 versions & 3 rubygems

Version Path
gollum-2.3.9 lib/gollum/frontend/views/search.rb
gollum-2.3.8 lib/gollum/frontend/views/search.rb
gollum-2.3.7 lib/gollum/frontend/views/search.rb
gollum-2.3.6 lib/gollum/frontend/views/search.rb
gollum-2.3.5 lib/gollum/frontend/views/search.rb
gollum-2.3.4 lib/gollum/frontend/views/search.rb
gollum-2.3.3 lib/gollum/frontend/views/search.rb
gollum-2.3.2 lib/gollum/frontend/views/search.rb
gollum-2.3.1 lib/gollum/frontend/views/search.rb
gollum-2.3.0 lib/gollum/frontend/views/search.rb
gollum-2.2.9 lib/gollum/frontend/views/search.rb
gollum-2.2.8 lib/gollum/frontend/views/search.rb
gollum-2.2.7 lib/gollum/frontend/views/search.rb
gollum-2.2.6 lib/gollum/frontend/views/search.rb
gollum-2.2.5 lib/gollum/frontend/views/search.rb
gollum-2.2.4 lib/gollum/frontend/views/search.rb
gollum-2.2.3 lib/gollum/frontend/views/search.rb
gollum-2.2.2 lib/gollum/frontend/views/search.rb
gollum-2.2.1 lib/gollum/frontend/views/search.rb
gollum-2.2.0 lib/gollum/frontend/views/search.rb