Sha256: cf88b16b0a68511c1c990c16232ea01b8e00575b507c592aa0c7de756ab874c6
Contents?: true
Size: 948 Bytes
Versions: 3
Compression:
Stored size: 948 Bytes
Contents
<% if current_user %> <button id="dropdown-trigger-links-mobile" class="main-bar__links-mobile__item" data-component="dropdown" data-target="dropdown-menu-account-mobile"> <% if current_user.notifications.any? %> <span class="main-bar__notification"></span> <% end %> <% if current_user.avatar.attached? %> <span class="main-bar__avatar"> <%= image_tag( current_user.attached_uploader(:avatar).path(variant: :thumb), alt: t("decidim.author.avatar", name: decidim_sanitize(current_user.avatar.name)) ) %> </span> <% else %> <div class="main-bar__avatar-name"> <%= text_initials(current_user.name) %> </div> <% end %> </button> <% else %> <%= link_to decidim.new_user_session_path, class: "main-bar__links-mobile__login" do %> <%= icon "user-line" %><span><%= t("layouts.decidim.header.log_in") %></span> <% end %> <% end %>
Version data entries
3 entries across 3 versions & 1 rubygems