<% if @character.present? %> <%= image_tag(@character.avatar, class: 'avatar') %> <% else %> <%= avatar(current_user) %> <% end %>
<%= @character.present? ? @character.name : current_user.username %>
<% if @character.present? %>
<%= @character.name %> <% if user_signed_in? %> <%= username(current_user) %> <% end %>
<%= @character.server %> <%= verified(@character) if user_signed_in? %>
<%= last_updated(@character) %>
<% if @comparison.present? %>
<%= image_tag(@comparison.avatar, class: 'avatar mr-2') %>
<%= @comparison.name %> <%= link_to fa_icon('times', class: 'delete'), forget_character_comparison_path, method: :delete %>
<%= @comparison.server %> <%= t('characters.comparing') %>
<% end %>
<%= link_to fa_icon('user', text: t('characters.character_profile')), character_path(@character), class: 'dropdown-item' %> <%= link_to fa_icon('chart-bar', text: t('characters.stats')), stats_rarity_character_path(@character), class: 'dropdown-item' %> <% if user_signed_in? && !@character.verified_user?(current_user) %> <%= link_to fa_icon('check-circle', text: t('characters.verify')), verify_character_path, class: 'dropdown-item' %> <% end %> <%= link_to fa_icon('sync', text: t('characters.refresh')), refresh_character_path, method: :post, class: 'dropdown-item' %> <%= link_to fa_icon('undo', text: t('characters.change')), search_characters_path, class: 'dropdown-item' %> <%= link_to fa_icon('retweet', text: t('characters.compare')), search_characters_path(compare: 1), class: 'dropdown-item' %> <%= link_to fa_icon('times', text: t('characters.forget')), forget_character_path, class: 'dropdown-item', method: :delete %> <% if user_signed_in? %>
<% end %> <% end %> <% if user_signed_in? %> <% if current_user.admin? %> <%= link_to fa_icon('user', text: 'Manage Users'), admin_users_path, class: 'dropdown-item' %> <%= link_to fa_icon('users', text: 'Manage Characters'), admin_characters_path, class: 'dropdown-item' %> <%= link_to fa_icon('chart-line', text: 'Sidekiq'), '/admin/sidekiq', class: 'dropdown-item', target: '_blank' %> <% end %> <% if current_user.mod? %> <%= link_to fa_icon('table', text: 'Mod Dashboard'), mod_dashboard_path, class: 'dropdown-item' %>
<% end %> <%= link_to fa_icon('wrench', text: t('settings.title')), settings_path, class: 'dropdown-item' %> <%= link_to fa_icon('sign-out-alt', text: t('users.sign_out')), destroy_user_session_path, class: 'dropdown-item' %> <% end %>