Sha256: fc53597afcfb50fc359ed2ea6625b78988dc86a2e0166abe0bfbd4a54fd1ec34

Contents?: true

Size: 1.27 KB

Versions: 10

Compression:

Stored size: 1.27 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">
  <h1>
    <%= @tags.total_count %>
    <%= ActsAsTaggableOn::Tag.model_name.human(count: @tags.total_count) %>
  </h1>
  <% if @tags.any? %>

  <table class="list" id="tag_list">
    <tr class="legend">
      <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>
    <%= render partial: 'tag', collection: @tags %>
  </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

10 entries across 10 versions & 1 rubygems

Version Path
alchemy_cms-3.0.4 app/views/alchemy/admin/tags/index.html.erb
alchemy_cms-3.0.3 app/views/alchemy/admin/tags/index.html.erb
alchemy_cms-3.1.0.beta1 app/views/alchemy/admin/tags/index.html.erb
alchemy_cms-3.0.2 app/views/alchemy/admin/tags/index.html.erb
alchemy_cms-3.0.1 app/views/alchemy/admin/tags/index.html.erb
alchemy_cms-3.0.0 app/views/alchemy/admin/tags/index.html.erb
alchemy_cms-3.0.0.rc8 app/views/alchemy/admin/tags/index.html.erb
alchemy_cms-3.0.0.rc7 app/views/alchemy/admin/tags/index.html.erb
alchemy_cms-3.0.0.rc6 app/views/alchemy/admin/tags/index.html.erb
alchemy_cms-3.0.0.rc5 app/views/alchemy/admin/tags/index.html.erb