Sha256: 2281c7ab0546c471c56f43f5b22dda798fa209ca9e5869d0962bcbc3d43ac63f

Contents?: true

Size: 741 Bytes

Versions: 12

Compression:

Stored size: 741 Bytes

Contents

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

  = nav_bar_links 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'


    - else
      %li
        = link_to('Login', login_path)
        
  - if logged_in?
    = nav_bar_links(pull: 'right') do
      = nav_dropdown("Logged in as #{current_user.first_last_name}") do
        = dropdown_item(announcements_text, hidden_announcements_path)
        = dropdown_divider
        = dropdown_item(icon('remove', 'Logout'), logout_path)
        

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ucb_rails-0.0.13 lib/generators/ucb_rails/templates/app/views/layouts/_navigation.html.haml
ucb_rails-0.0.12 lib/generators/ucb_rails/templates/app/views/layouts/_navigation.html.haml
ucb_rails-0.0.11 lib/generators/ucb_rails/templates/app/views/layouts/_navigation.html.haml
ucb_rails-0.0.10 lib/generators/ucb_rails/templates/app/views/layouts/_navigation.html.haml
ucb_rails-0.0.9 lib/generators/ucb_rails/templates/app/views/layouts/_navigation.html.haml
ucb_rails-0.0.8 lib/generators/ucb_rails/templates/app/views/layouts/_navigation.html.haml
ucb_rails-0.0.7 lib/generators/ucb_rails/templates/app/views/layouts/_navigation.html.haml
ucb_rails-0.0.6 lib/generators/ucb_rails/templates/app/views/layouts/_navigation.html.haml
ucb_rails-0.0.5 lib/generators/ucb_rails/templates/app/views/layouts/_navigation.html.haml
ucb_rails-0.0.4 lib/generators/ucb_rails/templates/app/views/layouts/_navigation.html.haml
ucb_rails-0.0.3 lib/generators/ucb_rails/templates/app/views/layouts/_navigation.html.haml
ucb_rails-0.0.2 lib/generators/ucb_rails/templates/app/views/layouts/_navigation.html.haml