Sha256: 855b51cc285ded76c226432ecec371d247b328501b2dd7e4c2cc4814df70ed31

Contents?: true

Size: 866 Bytes

Versions: 3

Compression:

Stored size: 866 Bytes

Contents

<div class="right menu">
  <%= render partial: 'shared/locales' %>
  <%= render partial: 'the_notify/link' %>
  <% if current_user %>
    <div class="ui simple dropdown item" id="navbar_dropdown">
      <% if current_user.avatar.attached? %>
        <%= image_tag current_user.avatar.variant(resize: '28x28'), class: 'ui avatar image' %>
      <% else %>
        <%= image_tag 'default_avatar.jpg', size: '28x28', class: 'ui avatar image' %>
      <% end %>
      <%= current_user.name %>
      <i class="dropdown icon"></i>
      <div class="menu">
        <%= link_to 'Profile', '/my/profile', class: active_helper(controllers: ['profile']) %>
        <%= link_to 'Logout', logout_path, class: 'item' %>
      </div>
    </div>
  <% else %>
    <%= link_to login_path, class: 'item' do %>
      <i class="icon-user"></i> Login/Join
    <% end %>
  <% end %>
</div>

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
rails_data-1.0.2 test/dummy/app/views/layouts/_right_menu.html.erb
rails_audit-1.0.0 test/dummy/app/views/layouts/_right_menu.html.erb
rails_audit-0.0.1 test/dummy/app/views/layouts/_right_menu.html.erb