Sha256: 20660d5f4967e22c438f9ba1dfd6fc17d30df242024129a137701d4614e8573f

Contents?: true

Size: 957 Bytes

Versions: 1

Compression:

Stored size: 957 Bytes

Contents

= nav_bar do
  
  = brand(app_name, url: root_path, with_environment: true)

  = nav_bar_wrapper do 
    = nav_bar_links(pull: 'right') do
      - if logged_in?
        - if admin?
          = nav_dropdown("Admin") do
            = dropdown_item(announcements_text, admin_announcements_path)
            = dropdown_item(icon('user', "Users"), ucb_rails_admin_users_path)
        
          = render partial: 'layouts/developer'

        = nav_dropdown("Logged in as #{current_user.full_name}") do
          - if admin?
            = dropdown_item(icon('user', "Disable admin user"), toggle_admin_path)
          - else
            = dropdown_item(icon('user', "Enable admin user"), toggle_admin_path)
          = dropdown_item(announcements_text, hidden_announcements_path)
          = dropdown_divider
          = dropdown_item(icon('remove', 'Logout'), logout_path)
          

      - else
        %li
          = link_to('Login', login_path)
          

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ucb_rails-0.0.14 lib/generators/ucb_rails/templates/app/views/layouts/_navigation.html.haml