Class: App::Views::Layout

Inherits:
Mustache
  • Object
show all
Includes:
App::ViewHelpers
Defined in:
app/views/layout.rb

Instance Method Summary collapse

Methods included from App::ViewHelpers

#add_book_button, #admin, #admin?, #app_name, #base_url, #book_permitted, #count_instances, #external_link_glyph, #flag_modal_button, #flags, #get_instances_per_page, #instance_permitted, #instances_by_names, #javascripts, #json_file, #logged_in, #map_height, #metadata, #not_empty, #place_permitted, #places, #rendered_flash, #stylesheets, #user_name

Instance Method Details

#page_titleObject


12
13
14
# File 'app/views/layout.rb', line 12

def page_title 
  @page_title
end

#selected_item(text) ⇒ Object


6
7
8
9
10
# File 'app/views/layout.rb', line 6

def selected_item(text)
  if @path =~ /^\/#{text}$/
    "active"
  end
end