<%= link_to "Spark", root_path, class: "navbar-brand" %>
- <%= link_to "What's New", announcements_path, class: "nav-link #{unread_announcements(current_user)}" %>
<% if user_signed_in? %>
-
<%= link_to root_path, id: "navbar-dropdown", class: "nav-link dropdown-toggle", data: { toggle: "dropdown" }, aria: { haspopup: true, expanded: false } do %>
<%= image_tag gravatar_image_url(current_user.email, size: 40), height: 20, width: 20, class: "rounded" %>
<% end %>
<% else %>
- <%= link_to "Sign Up", new_user_registration_path, class: "nav-link" %>
- <%= link_to "Login", new_user_session_path, class: "nav-link" %>
<% end %>