Sha256: 4669b2324fc82608e35ff2eb1ea1ce490ae5582c99f89707d75be4f6b83f1649

Contents?: true

Size: 1.92 KB

Versions: 7

Compression:

Stored size: 1.92 KB

Contents

<div class="title-bar">
  <div class="layout-content__container">
    <span class="font-semibold text-sm">
      <%= current_organization.name %>
    </span>
    <div class="tool-bar">
      <%= link_to decidim.root_path, class: "button__site", target: "_blank", data: { "external-link": false } do %>
        <%= icon "eye-line" %>
        <%= t("see_site", scope: "decidim.admin.menu") %>
      <% end %>
      <% if available_locales.length > 1 %>
        <div class="topbar__dropmenu language-choose relative">
          <%= button_tag id: "admin-menu-trigger", data: { component: "dropdown", target: "admin-dropdown-menu-language" }, class: "dropdown__trigger" do %>
              <%= t("name", scope: "locale") %>
              <%= icon "arrow-down-s-line" %>
          <% end %>

          <div id="admin-dropdown-menu-language" aria-hidden="true">
            <ul class="dropdown dropdown__bottom">
              <% (available_locales - [I18n.locale.to_s]).each do |locale| %>
                <li class="dropdown__item">
                  <%= link_to(locale_name(locale), decidim.locale_path(locale:), method: :post, tabindex: "-1") %>
                </li>
              <% end %>
            </ul>
          </div>
        </div>
      <% end %>

      <div class="user-login relative">
        <%= button_tag current_user.email, id: "admin-dropdown-menu-login-trigger", data: { component: "dropdown", target: "admin-dropdown-menu-login" } , class: "dropdown__trigger" do %>
          <%= current_user.email %>
          <%= icon "arrow-down-s-line" %>
        <% end %>

        <div id="admin-dropdown-menu-login" aria-hidden="true">
          <ul class="dropdown dropdown__bottom">
            <li class="dropdown__item">
              <%= link_to(t("layouts.decidim.user_menu.log_out"), decidim.destroy_user_session_path, method: :delete, tabindex: "-1") %>
            </li>
          </ul>
        </div>
      </div>
    </div>
  </div>
</div>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
decidim-admin-0.28.4 app/views/layouts/decidim/admin/_title_bar.html.erb
decidim-admin-0.28.3 app/views/layouts/decidim/admin/_title_bar.html.erb
decidim-admin-0.28.2 app/views/layouts/decidim/admin/_title_bar.html.erb
decidim-admin-0.28.1 app/views/layouts/decidim/admin/_title_bar.html.erb
decidim-admin-0.28.0 app/views/layouts/decidim/admin/_title_bar.html.erb
decidim-admin-0.28.0.rc5 app/views/layouts/decidim/admin/_title_bar.html.erb
decidim-admin-0.28.0.rc4 app/views/layouts/decidim/admin/_title_bar.html.erb