_navbar.html.erb 1.5 KB

123456789101112131415161718192021222324252627
  1. <nav class="navbar navbar-toggleable-md navbar-light bg-faded">
  2. <div class="container">
  3. <button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
  4. <span class="navbar-toggler-icon"></span>
  5. </button>
  6. <%= link_to "Spark", root_path, class: "navbar-brand" %>
  7. <div class="collapse navbar-collapse" id="navbarSupportedContent">
  8. <ul class="navbar-nav mr-auto mt-2 mt-md-0">
  9. </ul>
  10. <ul class="navbar-nav">
  11. <li class="nav-item"><%= link_to "What's New", announcements_path, class: "nav-link #{unread_announcements(current_user)}" %></li>
  12. <% if user_signed_in? %>
  13. <li class="nav-item">
  14. <a class="nav-link" href="javascript:void(0)" data-uv-lightbox="classic_widget" data-uv-mode="full" data-uv-primary-color="#3aa2e3" data-uv-link-color="#56b68b" data-uv-default-mode="support" data-uv-forum-id="259979">Support</a>
  15. </li>
  16. <li class="nav-item"><%= link_to "Account", edit_user_registration_path, class: "nav-link" %></li>
  17. <li class="nav-item"><%= link_to "Logout", destroy_user_session_path, method: :delete, class: "nav-link" %></li>
  18. <% else %>
  19. <li class="nav-item"><%= link_to "Sign Up", new_user_registration_path, class: "nav-link" %></li>
  20. <li class="nav-item"><%= link_to "Login", new_user_session_path, class: "nav-link" %></li>
  21. <% end %>
  22. </ul>
  23. </div>
  24. </div>
  25. </nav>