Class: Protozoa::Views::Index

Inherits:
Layout
  • Object
show all
Defined in:
lib/amiba/frontend/views/index.rb

Instance Attribute Summary collapse

Attributes inherited from Layout

#name

Instance Method Summary collapse

Methods inherited from Layout

#edit_url, #escaped_name, #view_url

Instance Attribute Details

#entriesObject (readonly)

Returns the value of attribute entries


4
5
6
# File 'lib/amiba/frontend/views/index.rb', line 4

def entries
  @entries
end

#pagesObject (readonly)

Returns the value of attribute pages


4
5
6
# File 'lib/amiba/frontend/views/index.rb', line 4

def pages
  @pages
end

#refObject (readonly)

Returns the value of attribute ref


4
5
6
# File 'lib/amiba/frontend/views/index.rb', line 4

def ref
  @ref
end

Instance Method Details

#has_entriesObject


10
11
12
# File 'lib/amiba/frontend/views/index.rb', line 10

def has_entries
  !@entries.empty?
end

#no_entriesObject


14
15
16
# File 'lib/amiba/frontend/views/index.rb', line 14

def no_entries 
  @entries.empty?
end

#titleObject


6
7
8
# File 'lib/amiba/frontend/views/index.rb', line 6

def title
  "All pages for #{Amiba::Configuration.site_name}"
end