<% # encoding: utf-8 %>
<h1 class="h1"><%= @news_bulletin.title[I18n.locale] %></h1>
<div class="info">
	<div class="info1">
		<span class="pull-right"><%= dislpay_view_count(@news_bulletin) %></span>
		<span class="date"><%= display_date(@news_bulletin.postdate) %></span>
		<% unit = @news_bulletin.unit_list_for_anc.title[I18n.locale] rescue nil %>
		<%= " | " if unit %>
		<a href="" class="unit"><%= unit %></a>
	</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[I18n.locale].html_safe %>
</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.i18n_variable[I18n.locale], 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.filetitle[I18n.locale], bfile.file.url, {:target => '_blank', :title => bfile.description} if bfile.file.file %>
					<% end %>
			</div>
		</div>
	<% end %>
</div>

<div class="fb">
	<%= render  "shared/addthis_toolbox"%>
</div>
