Sha256: 2f0c16f4bae9cbf767a0a66bbd8feb1cfe41b606fc0fbe0969ffa55a164aa048

Contents?: true

Size: 1.35 KB

Versions: 16

Compression:

Stored size: 1.35 KB

Contents

<% content_for :toolbar do %>
  <div class="toolbar_buttons">
    <%= toolbar_button(
      icon: :plus,
      label: Alchemy.t('New Tag'),
      url: alchemy.new_admin_tag_path,
      title: Alchemy.t('New Tag'),
      hotkey: 'alt+n',
      tooltip_placement: "top-start",
      dialog_options: {
        title: Alchemy.t('New Tag'),
        size: '310x180'
      },
      if_permitted_to: [:create, Alchemy::Tag]
    ) %>
  </div>
  <%= render 'alchemy/admin/partials/search_form' %>
<% end %>

<div id="archive_all" class="resources-table-wrapper">
  <%= render 'alchemy/admin/resources/table_header' %>
  <% if @tags.any? %>

  <table class="list">
    <thead>
      <tr>
        <th class="icon"></th>
        <th class="name"><%= sort_link(@query, :name) %></th>
        <th style="width: 15%"><%= Gutentag::Tag.human_attribute_name(:taggings_types) %></th>
        <th class="count"><%= sort_link(@query, :taggings_count) %></th>
        <th class="tools"></th>
      </tr>
    </thead>
    <tbody>
      <%= render partial: 'tag', collection: @tags %>
    </tbody>
  </table>

  <%= paginate @tags, theme: 'alchemy' %>

  <% else %>

  <%= render_message do %>
    <h2><%= Alchemy.t('No Tags found') %></h2>
    <% if search_filter_params[:q].blank? %>
      <p><%= Alchemy.t(:tags_get_created_if_used_the_first_time) %></p>
    <% end %>
  <% end %>

  <% end %>
</div>

Version data entries

16 entries across 16 versions & 1 rubygems

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