Sha256: cd52c2d2a7be2eb8b5c29930d840216a752184a9a0f79cc9369a4fc033837996

Contents?: true

Size: 1.13 KB

Versions: 16

Compression:

Stored size: 1.13 KB

Contents

<% label_title = Alchemy.t("Create #{resource_name}", default: Alchemy.t('Create')) %>

<% content_for :toolbar do %>
  <div class="toolbar_buttons">
    <%= toolbar_button(
      icon: :plus,
      label: label_title,
      url: new_resource_path,
      title: label_title,
      hotkey: 'alt+n',
      tooltip_placement: "top-start",
      dialog_options: {
        title: label_title,
        size: "430x415"
      },
      if_permitted_to: [:create, Alchemy::Site]
    ) if @sites.any? %>
  </div>
  <%= render 'alchemy/admin/partials/search_form' %>
<% end %>

<div id="archive_all" class="resources-table-wrapper">
  <% if @sites.any? %>
    <%= render 'alchemy/admin/resources/table_header' %>
    <%= render 'table', icon: "global" %>
  <% elsif search_filter_params[:q].present? %>
    <%= render_message { Alchemy.t('Nothing found') } %>
  <% else %>
    <div class="panel no-resource-found">
      <%= render_message do %>
        <%== Alchemy.t('alchemy/site', scope: :no_resource_found) %>
      <% end %>
      <%= render 'form', site: Alchemy::Site.new(Alchemy::Config.get(:default_site).merge(public: true)) %>
    </div>
  <% end %>
</div>

Version data entries

16 entries across 16 versions & 1 rubygems

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