Sha256: 2c9a3e2af69c377894a17e03144e8d7caf492d64fa4f886386d1d8f16713e883

Contents?: true

Size: 793 Bytes

Versions: 3

Compression:

Stored size: 793 Bytes

Contents

<%= render 'tab_admin_menu' %>

<table class='table table-striped'>
	<thead>
  	<tr>
	    <th><%= t 'activerecord.attributes.tags.name' %></th>
	    <th><%= t('actions') %></th>
	  </tr>
	</thead>

	<tbody>
		<% @tags.each do |tag| %>
		  <tr>
		    <td><%= link_to ("#{tag.name} (#{tag.taggings.count})"), blog_by_tag_path(tag.name) %></td>
		    <td><%= link_to "<span class='glyphicon glyphicon-pencil'></span> #{t('edit')}".html_safe, edit_tag_path(tag), class: 'btn btn-xs btn-default' %><%= link_to( "<span class='glyphicon glyphicon-trash'></span>".html_safe, tag, method: :delete, data: { confirm: t('are_you_sure') }, class: 'btn btn-xs btn-danger', title: t('delete')) if tag.taggings.count == 0 %></td>
		  </tr>
		<% end %>
	</tbody>
</table>

<%= render 'shared/admin_sidebar' %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tkh_content-0.10.10 app/views/tags/index.html.erb
tkh_content-0.10.9 app/views/tags/index.html.erb
tkh_content-0.10.8 app/views/tags/index.html.erb