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-4.1.4 lib/gollum/views/search.rb
gollum-4.1.3 lib/gollum/views/search.rb
inc_gollum-5.0.1b.pre.rc2 lib/gollum/views/search.rb
inc_gollum-5.0.1b.pre.rc1 lib/gollum/views/search.rb
inc_gollum-4.1.2d lib/gollum/views/search.rb
inc_gollum-4.1.2c lib/gollum/views/search.rb
gollum-4.1.2 lib/gollum/views/search.rb
gollum-4.1.1 lib/gollum/views/search.rb
gollum-4.1.0 lib/gollum/views/search.rb
gollum-4.0.1 lib/gollum/views/search.rb
gollum-4.0.0 lib/gollum/views/search.rb
gollum-3.1.3 lib/gollum/views/search.rb
gollum-3.1.2 lib/gollum/views/search.rb
gollum-3.1.1 lib/gollum/views/search.rb
gollum-3.1.0 lib/gollum/views/search.rb
gollum-3.0.0 lib/gollum/views/search.rb
gollum-2.7.0 lib/gollum/views/search.rb
gollum-2.6.0 lib/gollum/views/search.rb
gollum-2.5.2 lib/gollum/views/search.rb
gollum-2.5.1 lib/gollum/views/search.rb