Sha256: 6cc896ffeb7cca296b26085e605d03a9e58522f1b736783454b8823288585356
Contents?: true
Size: 943 Bytes
Versions: 1
Compression:
Stored size: 943 Bytes
Contents
<% content_for :user_card do %> <%= irelia_flex items: :center, width: :full do %> <%= irelia_avatar { "https://picsum.photos/50" } %> <%= irelia_flex direction: :column, gap: :none, text: :sm, grow: true, items: :start do %> <%= irelia_div(bold: :bold) { current_account.name == current_user.name ? t(".personal") : current_account.name } %> <%= current_user.name %> <% end %> <%= irelia_icon { "fa fa-caret-down" } %> <% end %> <% end %> <%= irelia_dropdown(direction: :up) do |dropdown| dropdown.with_custom_trigger { yield :user_card } dropdown.with_item(url: dashboard_path(account_id: nil), icon: "fa fa-user") { current_user.name } current_user.accounts.each { |account| dropdown.with_item(url: dashboard_path(account_id: account), icon: "fa fa-users") { account.name } } dropdown.with_item(url: new_user_settings_account_path, icon: "fa fa-plus-circle") { t(".create_new") } end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kiqr-0.1.0.alpha1 | lib/kiqr/themes/irelia/views/kiqr/shared/_account_switcher.html.erb |