Sha256: 3a39693a05735d5af618797de3fbac4f3d08139b3114a88b56547cbc94a8c5f3
Contents?: true
Size: 1.5 KB
Versions: 6
Compression:
Stored size: 1.5 KB
Contents
<% content_for(:toolbar) do %> <%= render 'alchemy/admin/partials/site_select' %> <%= render 'language_tree_select' %> <%= print_current_site_language %> <%= render partial: 'search_box', locals: {url: polymorphic_path(url_namespace), base_class: base_class} %> <% end %> <% buttons = [] buttons << { icon: :plus, label: acm_t(:title_action, action: acm_t(:new, scope: :actions), model: base_class.model_name.human), url: new_polymorphic_path(url_namespace), title: acm_t(:title_action, action: acm_t(:new, scope: :actions), model: base_class.model_name.human), hotkey: 'alt+n', dialog: false, if_permitted_to: [:create, base_class] } if exist_order_path? buttons << { icon: :random, label: acm_t(:title_action, action: acm_t(:order, scope: :actions), model: base_class.model_name.human), url: order_path, title: acm_t(:title_action, action: acm_t(:order, scope: :actions), model: base_class.model_name.human), hotkey: 'alt+n', dialog: false, if_permitted_to: [:order, base_class] } end %> <% toolbar( buttons: buttons, search: false, ) %> <%= base_container do %> <div id="archive_all" class="resources-table-wrapper"> <%= content_tag :h1, "#{@objects.count} #{base_class.model_name.human(count: @objects.count)}", class: 'resources-header' %> <%= render partial: "table" %> <%= paginate @objects, theme: 'alchemy', hide_per_page_select: true %> </div> <% end %>
Version data entries
6 entries across 6 versions & 1 rubygems