- </a>
- <ul class='dropdown-menu'>
- <li>
- <%= link_to inbox_messages_path do %>
- <span class='count-number'><%= number_with_delimiter(current_user.new_messages.size) %></span>
- <%= t("users.show.my messages") %>
- <% end %>
- </li>
- <li>
- <%= link_to t("users.show.my profile"), user_path(current_user) %>
- </li>
- <li>
- <%= link_to t("users.show.my settings"), :controller => "users", :action => "account", :display_name => current_user.display_name %>
- </li>
- <li class="divider"></li>
- <li>
- <%= yield :greeting %>
- </li>
- <li>
- <%= link_to t("layouts.logout"), logout_path(:session => session.id, :referer => request.fullpath), :class => "geolink" %>
- </li>
- </ul>
+ </button>
+ <div class='dropdown-menu dropdown-menu-end'>
+ <%= link_to t("users.show.my_dashboard"), dashboard_path, :class => "dropdown-item" %>
+ <%= link_to inbox_messages_path, :class => "dropdown-item" do %>
+ <%= t("users.show.my messages") %>
+ <span class='badge count-number'><%= number_with_delimiter(current_user.new_messages.size) %></span>
+ <% end %>
+ <%= link_to t("users.show.my profile"), current_user, :class => "dropdown-item" %>
+ <%= link_to t("users.show.my settings"), edit_account_path, :class => "dropdown-item" %>
+ <%= link_to t("users.show.my_preferences"), preferences_path, :class => "dropdown-item" %>
+ <div class="dropdown-divider"></div>
+ <%= yield :greeting %>
+ <%= link_to t("layouts.logout"), logout_path(:referer => request.fullpath), :method => "post", :class => "geolink dropdown-item" %>
+ </div>
+ </div>
+ <% elsif (controller_name != "users" and controller_name != "sessions") || action_name != "new" %>
+ <div class="d-inline-flex btn-group login-menu" role="">
+ <%= link_to t("layouts.log_in"), login_path(:referer => request.fullpath), :class => "geolink btn btn-outline-secondary" %>
+ <%= link_to t("layouts.sign_up"), user_new_path, :class => "btn btn-outline-secondary" %>