Sha256: 29fe347b7c58b60b6a1dab26fd77d95a1085221dbb82fd9ba41d6441a09ef0d4

Contents?: true

Size: 1.38 KB

Versions: 17

Compression:

Stored size: 1.38 KB

Contents

<%= toolbar(
  buttons: [
    {
      icon: 'tag_add',
      label: _t('New Tag'),
      url: alchemy.new_admin_tag_path,
      title: _t('New Tag'),
      hotkey: 'alt+n',
      dialog_options: {
        title: _t('New Tag'),
        size: '310x180'
      },
      if_permitted_to: [:create, Alchemy::Tag]
    }
  ]
) %>

<div id="archive_all" class="resources-table-wrapper">
  <h1 class="resources-header">
    <%= @tags.total_count %>
    <%= ActsAsTaggableOn::Tag.model_name.human(count: @tags.total_count) %>
  </h1>
  <% if @tags.any? %>

  <table class="list" id="tag_list">
    <thead>
      <tr>
        <th class="icon"></th>
        <th class="name"><%= sortable_column(ActsAsTaggableOn::Tag.human_attribute_name(:name), column: :name) %></th>
        <th class="count"><%= ActsAsTaggableOn::Tag.human_attribute_name(:taggings_types) %></th>
        <th class="count"><%= sortable_column(ActsAsTaggableOn::Tag.human_attribute_name(:taggings_count), column: :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><%= _t('No Tags found') %></h2>
    <% if params[:query].blank? %>
      <p><%= _t(:tags_get_created_if_used_the_first_time) %></p>
    <% end %>
  <% end %>

  <% end %>
</div>

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
alchemy_cms-3.2.1 app/views/alchemy/admin/tags/index.html.erb
alchemy_cms-3.1.3 app/views/alchemy/admin/tags/index.html.erb
lc_alchemy_cms-3.2.1 app/views/alchemy/admin/tags/index.html.erb
lc_alchemy_cms-3.2.0 app/views/alchemy/admin/tags/index.html.erb
alchemy_cms-3.2.0 app/views/alchemy/admin/tags/index.html.erb
alchemy_cms-3.2.0.rc1 app/views/alchemy/admin/tags/index.html.erb
alchemy_cms-3.2.0.beta app/views/alchemy/admin/tags/index.html.erb
alchemy_cms-3.1.1 app/views/alchemy/admin/tags/index.html.erb
alchemy_cms-3.1.0 app/views/alchemy/admin/tags/index.html.erb
alchemy_cms-3.1.0.rc3 app/views/alchemy/admin/tags/index.html.erb
alchemy_cms-3.1.0.rc2 app/views/alchemy/admin/tags/index.html.erb
alchemy_cms-3.1.0.rc1 app/views/alchemy/admin/tags/index.html.erb
alchemy_cms-3.1.0.beta6 app/views/alchemy/admin/tags/index.html.erb
alchemy_cms-3.1.0.beta5 app/views/alchemy/admin/tags/index.html.erb
alchemy_cms-3.1.0.beta4 app/views/alchemy/admin/tags/index.html.erb
alchemy_cms-3.1.0.beta3 app/views/alchemy/admin/tags/index.html.erb
alchemy_cms-3.1.0.beta2 app/views/alchemy/admin/tags/index.html.erb