<tr id="<%= dom_id bulletin %>" class="with_action">
	<td>
		<% if (bulletin.create_user_id ==  current_user.id) || is_manager? %>
			<%= check_box_tag 'to_delete[]', bulletin.id, false, :class => "checkbox_in_list" %>
		<% end -%>
	</td>
	<td>
		<div class="label-group">
			<div class="label-td">
				<% if bulletin.is_top? %>
					<span class="label label-success"><%= t(:top) %></span>
				<% end %>
				<% if bulletin.is_hot? %>
					<span class="label label-important"><%= t(:hot) %></span>
				<% end %>
				<% if bulletin.is_hidden? %>
					<span class="label"><%= t(:hidden) %></span>
				<% end %>
				<% if bulletin.is_pending? %>
					<span class="label"><%= t(:pending) %></span>
				<% end %>
				<% if bulletin.is_checked? %>
					<span class="label"><%= t(:passed) %></span>
				<% end %>
				<% if bulletin.is_rejected? %>
					<span class="label"><%= t(:rejected) %></span>
				<% end %>
			</div>
		</div>
	</td>
	<td><%= bulletin.bulletin_category.i18n_variable[I18n.locale] rescue nil %></td>
	<td>
		<%= link_to bulletin.title[I18n.locale], panel_announcement_front_end_bulletin_path(bulletin, :category_id => bulletin.bulletin_category.id) rescue ''%>
		
		<div class="quick-edit">
			<ul class="nav nav-pills hide">
				<% if (bulletin.create_user_id ==  current_user.id) || is_manager? %>
				
					<% if current_user.admin? || (!bulletin.is_rejected? && !bulletin.is_checked?) %>
						<li><%= link_to t('bulletin.edit'), edit_panel_announcement_back_end_bulletin_path(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_announcement_back_end_bulletin_path(bulletin, :type => 'basic'), :remote => true %></li>
								<li><%= link_to t(:picture), load_quick_edit_panel_announcement_back_end_bulletin_path(bulletin, :type => 'picture'), :remote => true %></li>
								<li><%= link_to t(:tags), load_quick_edit_panel_announcement_back_end_bulletin_path(bulletin, :type => 'tags'), :remote => true %></li>
								<li><%= link_to t(:link), load_quick_edit_panel_announcement_back_end_bulletin_path(bulletin, :type => 'links'), :remote => true %></li>
								<li><%= link_to t(:file), load_quick_edit_panel_announcement_back_end_bulletin_path(bulletin, :type => 'files'), :remote => true %></li>
							</ul>
						</li>
						<%#= debugger  %>
						<%#= a=1 %>

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