
<tr id="<%= dom_id post %>">
	<td>
		<% if post.is_top? %>
			<span class="label label-success"><%= t(:top) %></span>
		<% end %>
		<% if post.is_hot? %>
			<span class="label label-important"><%= t(:hot) %></span>
		<% end %>
		<% if post.is_hidden? %>
			<span class="label"><%= t(:hidden) %></span>
		<% end %>	
	</td>
	<td><%= post.web_link_category.i18n_variable[I18n.locale] %></td>
	<td>
	<%= link_to post.name[I18n.locale], panel_web_resource_back_end_web_link_path(post) %>
	</td>
	<td>
		<% post.tags.each do |tag| %>
			<span class="label label-tags"><%= tag[I18n.locale] %></span>
		<% end %>
	</td>
	<td>
	<%= link_to t('web_link.edit'), edit_panel_web_resource_back_end_web_link_path(post) %> | 
	
	<%= link_to t(:set_top), eval("panel_web_resource_back_end_web_link_path(post, :authenticity_token => form_authenticity_token, :web_link => {:is_top => true})"), :remote => true, :method => :put, :id => "disable_#{post.id}", :style => "display:#{post.is_top? ? 'none' : ''}", :class => 'switch' %>
	<%= link_to t(:cancel_top), eval("panel_web_resource_back_end_web_link_path(post, :authenticity_token => form_authenticity_token, :web_link => {:is_top => false})"), :remote => true, :method => :put, :id => "enable_#{post.id}", :style => "display:#{post.is_top? ? '' : 'none'}", :class => 'switch' %>
			
	 | <%= link_to t('web_link.delete'), panel_web_resource_back_end_web_link_path(post), :confirm => t('sure?'), :method => :delete, :remote => true %>
	</td>
</tr>
