Sha256: f9758e4d5e11af135e82a1f1695e9e1297434ed40fc5318d5ec68a6582cebc86

Contents?: true

Size: 324 Bytes

Versions: 12

Compression:

Stored size: 324 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

12 entries across 12 versions & 3 rubygems

Version Path
gollum-bibanon-1.4.4 lib/gollum/frontend/views/search.rb
gollum-bibanon-1.4.3 lib/gollum/frontend/views/search.rb
gollum-bibanon-1.4.2 lib/gollum/frontend/views/search.rb
gollum-bibanon-1.4.1 lib/gollum/frontend/views/search.rb
gollum-bibanon-1.3.2 lib/gollum/frontend/views/search.rb
gollum-bibanon-1.4.0 lib/gollum/frontend/views/search.rb
gollum-bibanon-1.3.1 lib/gollum/frontend/views/search.rb
gollum-1.3.1 lib/gollum/frontend/views/search.rb
jugyo-gollum-1.3.1 lib/gollum/frontend/views/search.rb
gollum-1.2.1 lib/gollum/frontend/views/search.rb
gollum-1.3.0 lib/gollum/frontend/views/search.rb
gollum-1.2.0 lib/gollum/frontend/views/search.rb