<% # encoding: utf-8 %>
<h1 class="h1"><%= @news_bulletin.title %></h1>
<div class="info">
	<div class="info1">
		<span class="pull-right"><%= dislpay_view_count(@news_bulletin)  rescue ""%></span>
		<span class="date"><%= display_date(@news_bulletin.postdate)  rescue "" %></span>
		<% unit = @news_bulletin.unit_list_for_anc.title rescue nil %>
		<%= " | " if unit %>
		<%= link_to unit, panel_news_front_end_index_news_bulletins_by_unit_path(:name=>@news_bulletin.unit_list_for_anc_id) unless unit.blank?%>
	</div>
</div>
<div class="news_image">
	<%#= image_tag(@news_bulletin.image.url, :size => "320x240") if @news_bulletin.image.file %>
	<%= link_to image_tag(@news_bulletin.image.url, :size => "320x240"), @news_bulletin.image.url, {:target => '_blank', :title => @news_bulletin.image_identifier} if @news_bulletin.image.file %>
</div>
<div class="news_paragraph">
	<%= @news_bulletin.text.html_safe rescue '' %>
</div>
<div class="linkAndFile">
	<% if @news_bulletin.news_bulletin_links.size > 0 %>
		<div>
			<i class="icons-link"></i>
			<div class="showLink">
					<% @news_bulletin.news_bulletin_links.each do | blink | %>
					  <%= link_to blink.title, blink.url, :target => '_blank' %>
					<% end %>
			</div>
		</div>
	<% end %>
	<% if @news_bulletin.news_bulletin_files.size > 0 %>
		<div>
			<i class="icons-paperclip"></i>
			<div class="showFile">
					<% @news_bulletin.news_bulletin_files.each do | bfile | %>
					<%= link_to bfile.title, bfile.file.url, {:target => '_blank', :title => bfile.description} if bfile.file.file %>
					<% end %>
			</div>
		</div>
	<% end %>
</div>

<%= share_links(@news_bulletin, 'news') %>
