Class: Protozoa::Views::Index
- Defined in:
- lib/amiba/frontend/views/index.rb
Instance Attribute Summary collapse
-
#entries ⇒ Object
readonly
Returns the value of attribute entries.
-
#pages ⇒ Object
readonly
Returns the value of attribute pages.
-
#ref ⇒ Object
readonly
Returns the value of attribute ref.
Attributes inherited from Layout
Instance Method Summary collapse
Methods inherited from Layout
#edit_url, #escaped_name, #view_url
Instance Attribute Details
#entries ⇒ Object (readonly)
Returns the value of attribute entries.
4 5 6 |
# File 'lib/amiba/frontend/views/index.rb', line 4 def entries @entries end |
#pages ⇒ Object (readonly)
Returns the value of attribute pages.
4 5 6 |
# File 'lib/amiba/frontend/views/index.rb', line 4 def pages @pages end |
#ref ⇒ Object (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_entries ⇒ Object
10 11 12 |
# File 'lib/amiba/frontend/views/index.rb', line 10 def has_entries !@entries.empty? end |
#no_entries ⇒ Object
14 15 16 |
# File 'lib/amiba/frontend/views/index.rb', line 14 def no_entries @entries.empty? end |
#title ⇒ Object
6 7 8 |
# File 'lib/amiba/frontend/views/index.rb', line 6 def title "All pages for #{Amiba::Configuration.site_name}" end |