Sha256: e0d542c4d15188b26a9b0a9bb880b784669af702a44a6bf76b20d93e60c167d6
Contents?: true
Size: 732 Bytes
Versions: 1
Compression:
Stored size: 732 Bytes
Contents
<div class="userbox pull-right dropdown"> <%= link_to "#", class: 'dropdown-toggle', data: { toggle: 'dropdown' } do %> <span class="name"> <%= format_user_name(current_user) %> <span class="caret"></span> </span> <%= avatar_for(current_user) %> <% end %> <ul class="dropdown-menu dropdown-menu-right"> <% if Trestle.config.auth.user_admin && user_admin = Trestle.lookup(Trestle.config.auth.user_admin) -%> <li><%= admin_link_to t("admin.auth.my_account", default: "My Account"), current_user, admin: user_admin, class: "dropdown-item" %></li> <% end -%> <li><%= link_to t("admin.auth.logout", default: "Log out"), trestle.logout_path, class: "dropdown-item" %></li> </ul> </div>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
trestle-auth-0.2.5 | app/views/trestle/auth/_userbox.html.erb |