|
@@ -1,24 +1,27 @@
|
|
<nav class="navbar navbar-toggleable-md navbar-light bg-faded">
|
|
<nav class="navbar navbar-toggleable-md navbar-light bg-faded">
|
|
- <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">
|
|
|
|
- <span class="navbar-toggler-icon"></span>
|
|
|
|
- </button>
|
|
|
|
- <a class="navbar-brand" href="#">Navbar</a>
|
|
|
|
|
|
+ <div class="container">
|
|
|
|
+ <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">
|
|
|
|
+ <span class="navbar-toggler-icon"></span>
|
|
|
|
+ </button>
|
|
|
|
+ <%= link_to "Spark", root_path, class: "navbar-brand" %>
|
|
|
|
|
|
- <div class="collapse navbar-collapse" id="navbarSupportedContent">
|
|
|
|
- <ul class="navbar-nav mr-auto">
|
|
|
|
- <li class="nav-item active">
|
|
|
|
- <a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
|
|
|
|
- </li>
|
|
|
|
- <li class="nav-item">
|
|
|
|
- <a class="nav-link" href="#">Link</a>
|
|
|
|
- </li>
|
|
|
|
- <li class="nav-item">
|
|
|
|
- <a class="nav-link disabled" href="#">Disabled</a>
|
|
|
|
- </li>
|
|
|
|
- </ul>
|
|
|
|
- <form class="form-inline my-2 my-lg-0">
|
|
|
|
- <input class="form-control mr-sm-2" type="text" placeholder="Search">
|
|
|
|
- <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
|
|
|
|
- </form>
|
|
|
|
|
|
+ <div class="collapse navbar-collapse" id="navbarSupportedContent">
|
|
|
|
+ <ul class="navbar-nav mr-auto mt-2 mt-md-0">
|
|
|
|
+ </ul>
|
|
|
|
+
|
|
|
|
+ <ul class="navbar-nav">
|
|
|
|
+ <li class="nav-item"><%#= link_to "What's New", announcements_path, class: "nav-link #{unread_announcements(current_user)}" %></li>
|
|
|
|
+ <% if user_signed_in? %>
|
|
|
|
+ <li class="nav-item">
|
|
|
|
+ <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>
|
|
|
|
+ </li>
|
|
|
|
+ <li class="nav-item"><%= link_to "Account", edit_user_registration_path, class: "nav-link" %></li>
|
|
|
|
+ <li class="nav-item"><%= link_to "Logout", destroy_user_session_path, method: :delete, class: "nav-link" %></li>
|
|
|
|
+ <% else %>
|
|
|
|
+ <li class="nav-item"><%= link_to "Sign Up", new_user_registration_path, class: "nav-link" %></li>
|
|
|
|
+ <li class="nav-item"><%= link_to "Login", new_user_session_path, class: "nav-link" %></li>
|
|
|
|
+ <% end %>
|
|
|
|
+ </ul>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
</nav>
|