1 <div class='dropdown' id='greeting'>
2 <a class='dropdown-toggle' data-toggle='dropdown' href="#">
3 <%= render :partial => 'layouts/inbox' %>
4 <%= @user.display_name %>
7 <ul class='dropdown-menu' role='menu' aria-labelledby='dLabel'>
9 <%= link_to inbox_path(:display_name => @user.display_name) do %>
10 <span class='count-number'><%= number_with_delimiter(@user.new_messages.size) %></span>
11 <%= t('message.inbox.my_inbox') %>
15 <%= link_to :controller => 'changeset', :action => 'list', :display_name => @user.display_name do %>
16 <span class='count-number'><%= number_with_delimiter(@user.changesets.size) %></span>
17 <%= t('user.view.my edits') %>
21 <%= link_to :controller => 'notes', :action => 'mine', :display_name => @user.display_name do %>
22 <span class='count-number'><%= number_with_delimiter(@user.notes.size) %></span>
23 <%= t('user.view.my notes') %>
27 <%= link_to :controller => 'trace', :action => 'mine' do %>
28 <span class='count-number'><%= number_with_delimiter(@user.traces.size) %></span>
29 <%= t('user.view.my traces') %>
33 <%= link_to :controller => 'diary_entry', :action => 'list', :display_name => @user.display_name do %>
34 <span class='count-number'><%= number_with_delimiter(@user.diary_entries.size) %></span>
35 <%= t('user.view.my diary') %>
39 <%= link_to t('user.view.my comments' ), :controller => 'diary_entry', :action => 'comments', :display_name => @user.display_name %>
42 <%= link_to t('user.view.my profile'), user_path(:display_name => @user.display_name) %>
45 <%= link_to t('user.view.my settings'), :controller => 'user', :action => 'account', :display_name => @user.display_name %>
47 <li class="divider"></li>
49 <%= yield :greeting %>
52 <%= link_to t('layouts.logout'), logout_path(:session => request.session_options[:id], :referer => request.fullpath) %>