Created
December 8, 2014 12:34
-
-
Save olly/8496d7d3600717b70fdd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Troop</title> | |
<%= stylesheet_link_tag 'application' %> | |
<%= javascript_include_tag 'application' %> | |
<%= csrf_meta_tags %> | |
</head> | |
<body> | |
<%= navbar 'Troop', root_path do %> | |
<%= navigation do |nav| %> | |
<%= nav.item 'Dashboard', dashboard_path, active: DashboardController === controller %> | |
<% if current_section %> | |
<%= nav.item current_section.naming.people, section_people_path(current_section), active: PeopleController === controller %> | |
<% end %> | |
<%= nav.item 'Help' %> | |
<% end %> | |
<%= navigation(:right) do |nav| %> | |
<%= nav.item 'Your Account', edit_account_path, active: controller.is_a?(AccountController) || controller.is_a?(AccountPasswordController) %> | |
<%= nav.divider %> | |
<% if current_section %> | |
<%= nav.dropdown_item(current_section.name) do |dropdown| %> | |
<%= dropdown.item "#{current_section.naming.short_section} Settings", section_settings_path(current_section) %> | |
<% if other_sections.any? %> | |
<%= dropdown.divider %> | |
<% other_sections.each do |section| %> | |
<%= dropdown.item(section.name, section_people_path(section)) %> | |
<% end %> | |
<% end %> | |
<%= dropdown.divider %> | |
<%= dropdown.item 'Add a New Section', new_section_path %> | |
<% end %> | |
<% else %> | |
<%= nav.item 'Add a New Section', new_section_path %> | |
<% end %> | |
<%= nav.divider %> | |
<%= nav.item('Logout', destroy_user_session_path) %> | |
<% end %> | |
<% end %> | |
<div class="container"> | |
<div class="row"> | |
<div class="span12"> | |
<%= yield %> | |
</div> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment