Sha256: 43bafd68e959f1c8d8813cceaf9c448a0f2557d8d0e45d7bd450fa1cc6d2fee6

Contents?: true

Size: 713 Bytes

Versions: 16

Compression:

Stored size: 713 Bytes

Contents

<% if !@preview_mode && @page && can?(:edit_content, @page) %>
  <alchemy-menubar>
    <template>
      <%= stylesheet_link_tag("alchemy/menubar") %>
      <div id="alchemy_menubar" data-turbo="false">
        <ul>
          <li><%= link_to Alchemy.t(:to_alchemy), alchemy.admin_dashboard_url %></li>
          <li><%= link_to Alchemy.t(:edit_page), alchemy.edit_admin_page_url(@page) %></li>
          <li>
            <%= form_tag Alchemy.logout_path, method: Alchemy.logout_method do %>
              <%= button_tag Alchemy.t(:logout) %>
            <% end %>
          </li>
        </ul>
      </div>
    </template>
  </alchemy-menubar>

  <%= javascript_include_tag('menubar', type: "module") %>
<% end %>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
alchemy_cms-7.1.12 app/views/alchemy/_menubar.html.erb
alchemy_cms-7.1.11 app/views/alchemy/_menubar.html.erb
alchemy_cms-7.1.10 app/views/alchemy/_menubar.html.erb
alchemy_cms-7.1.9 app/views/alchemy/_menubar.html.erb
alchemy_cms-7.1.8 app/views/alchemy/_menubar.html.erb
alchemy_cms-7.1.7 app/views/alchemy/_menubar.html.erb
alchemy_cms-7.1.6 app/views/alchemy/_menubar.html.erb
alchemy_cms-7.1.5 app/views/alchemy/_menubar.html.erb
alchemy_cms-7.1.4 app/views/alchemy/_menubar.html.erb
alchemy_cms-7.1.3 app/views/alchemy/_menubar.html.erb
alchemy_cms-7.1.2 app/views/alchemy/_menubar.html.erb
alchemy_cms-7.1.1 app/views/alchemy/_menubar.html.erb
alchemy_cms-7.1.0 app/views/alchemy/_menubar.html.erb
alchemy_cms-7.1.0.pre.rc1 app/views/alchemy/_menubar.html.erb
alchemy_cms-7.1.0.pre.b2 app/views/alchemy/_menubar.html.erb
alchemy_cms-7.1.0.pre.b1 app/views/alchemy/_menubar.html.erb