module ApplicationHelper
  def head
    hoptoad_javascript_notifier
  end

  def main_navigation(menu)
    if ENV["APP_NAME"] == "vowessly"
      menu.item "Canterbury", "/by_province/Canterbury"
      menu.item "York", "/by_province/York"
    end

    Page.content_types.reject { |t| t == "Page" }.each do |type|
      menu.item type.pluralize, content_type_path(type), :class => "type"
    end

    menu.item "Create a Page", new_page_path
  end

  def user_navigation(menu)
    menu.item image_tag("session/home.png", :title => "Home"), root_path
  end

  def status_menu
    render "search/form"
  end

  def link_or_text(text, type = nil)
    return text if type.nil?

    if page = Page.where(content_type: type, name: text).first
      return link_to(text, page)
    end

    text
  end
end

module ApplicationHelper
  def head
    hoptoad_javascript_notifier
  end

  def main_navigation(menu)
    if ENV["APP_NAME"] == "vowessly"
      menu.item "Canterbury", "/by_province/Canterbury"
      menu.item "York", "/by_province/York"
    end

    Page.content_types.reject { |t| t == "Page" }.each do |type|
      menu.item type.pluralize, content_type_path(type), :class => "type"
    end

    menu.item "Bibliography", bibliography_path
    menu.item "Create a Page", new_page_path
  end

  def user_navigation(menu)
    menu.item image_tag("session/home.png", :title => "Home"), root_path
  end

  def status_menu
    render "search/form"
  end

  def link_or_text(text, type = nil)
    return text if type.nil?

    if page = Page.where(content_type: type, name: text).first
      return link_to(text, page)
    end

    text
  end
end

Add the bibliography to the menu
Add the bibliography to the menu
