Class: Precious::Views::Search

Inherits:
Layout
  • Object
show all
Defined in:
lib/gollum/frontend/views/search.rb

Instance Attribute Summary collapse

Attributes inherited from Layout

#name

Instance Method Summary collapse

Methods inherited from Layout

#escaped_name

Instance Attribute Details

#contentObject (readonly)

Returns the value of attribute content.



4
5
6
# File 'lib/gollum/frontend/views/search.rb', line 4

def content
  @content
end

Returns the value of attribute footer.



4
5
6
# File 'lib/gollum/frontend/views/search.rb', line 4

def footer
  @footer
end

#pageObject (readonly)

Returns the value of attribute page.



4
5
6
# File 'lib/gollum/frontend/views/search.rb', line 4

def page
  @page
end

#queryObject (readonly)

Returns the value of attribute query.



4
5
6
# File 'lib/gollum/frontend/views/search.rb', line 4

def query
  @query
end

#resultsObject (readonly)

Returns the value of attribute results.



4
5
6
# File 'lib/gollum/frontend/views/search.rb', line 4

def results
  @results
end

Instance Method Details

#has_resultsObject



10
11
12
# File 'lib/gollum/frontend/views/search.rb', line 10

def has_results
  !@results.empty?
end

#no_resultsObject



14
15
16
# File 'lib/gollum/frontend/views/search.rb', line 14

def no_results 
  @results.empty?
end

#titleObject



6
7
8
# File 'lib/gollum/frontend/views/search.rb', line 6

def title
  "Search results for " + @query
end