<tr id="<%= dom_id news_bulletin %>" class="with_action">
	<td>
		<% if (news_bulletin.create_user_id ==  current_user.id) || is_manager? %>
			<%= check_box_tag 'to_delete[]', news_bulletin.id, false, :class => "checkbox_in_list" %>
		<% end -%>
	</td>
	<td>
		<div class="label-group">
			<div class="label-td">
				<% if news_bulletin.is_top? %>
					<span class="label label-success"><%= t(:top) %></span>
				<% end %>
				<% if news_bulletin.is_hot? %>
					<span class="label label-important"><%= t(:hot) %></span>
				<% end %>
				<% if news_bulletin.is_hidden? %>
					<span class="label"><%= t(:hidden) %></span>
				<% end %>
				<% if news_bulletin.is_pending? %>
					<span class="label"><%= t(:pending) %></span>
				<% end %>
				<% if news_bulletin.is_checked? %>
					<span class="label"><%= t(:passed) %></span>
				<% end %>
				<% if news_bulletin.is_rejected? %>
					<span class="label"><%= t(:rejected) %></span>
				<% end %>
			</div>
		</div>
	</td>
	<td><%= news_bulletin.news_bulletin_category.i18n_variable[I18n.locale] %></td>
	<td>
		<%= link_to news_bulletin.title[I18n.locale], panel_news_front_end_news_bulletin_path(news_bulletin, :category_id => news_bulletin.news_bulletin_category.id) rescue ''%>

		<div class="quick-edit">
			<ul class="nav nav-pills hide">
				<% if (news_bulletin.create_user_id ==  current_user.id) || is_manager? %>

					<% if current_user.admin? || (!news_bulletin.is_rejected? && !news_bulletin.is_checked?) %>
						<li><%= link_to t('news_bulletin.edit'), edit_panel_news_back_end_news_bulletin_path(news_bulletin) %></li>
						<li class="dropdown">
							<a href="#" data-toggle="dropdown" class="dropdown-toggle"><%= t(:quick_edit) %><b class="caret"></b></a>
							<ul class="dropdown-menu" id="menu1">
								<li><%= link_to t(:basic), load_quick_edit_panel_news_back_end_news_bulletin_path(news_bulletin, :type => 'basic'), :remote => true %></li>
								<li><%= link_to t(:picture), load_quick_edit_panel_news_back_end_news_bulletin_path(news_bulletin, :type => 'picture'), :remote => true %></li>
								<li><%= link_to t(:tags), load_quick_edit_panel_news_back_end_news_bulletin_path(news_bulletin, :type => 'tags'), :remote => true %></li>
								<li><%= link_to t(:link), load_quick_edit_panel_news_back_end_news_bulletin_path(news_bulletin, :type => 'links'), :remote => true %></li>
								<li><%= link_to t(:file), load_quick_edit_panel_news_back_end_news_bulletin_path(news_bulletin, :type => 'files'), :remote => true %></li>
							</ul>
						</li>
						<%#= debugger  %>
						<%#= a=1 %>

					<% end %>
					<li class="dropdown"><%= link_to t('news_bulletin.delete'), panel_news_back_end_news_bulletin_path(news_bulletin), :confirm => t('news.sure?'), :method => :delete, :remote => true %></li>	
				<% end %>
				<% if news_show_approval_link(news_bulletin) %>
					<li><%= link_to t('news.news_bulletin.approval'), panel_news_back_end_news_bulletin_approval_preview_path(news_bulletin)   %></li><%#= #TODO add ancher so user can quick access into that part %>
				<% end %>		
				
			</ul>
		</div>
	</td>
	<td><%= news_bulletin.postdate %></td>
	<td><%= (news_bulletin.deadline) ? news_bulletin.deadline : t('news_bulletin.no_deadline') %></td>
	<td>
		<div class="label-group">
			<div class="label-td">
				<% news_bulletin.sorted_tags.each do |tag| %>
					<span class="label label-tags"><%= tag[I18n.locale] %></span>
				<% end %>
			</div>
		</div>
	</td>
	<td><%= User.from_id(news_bulletin.update_user_id).name rescue ''%></td>
</tr>
<tr id="<%= dom_id news_bulletin, :edit %>" class="qe-block hide" />
