<% # encoding: utf-8 %>
<h1 class="h1"><%= @bulletin.title[I18n.locale] %></h1>
<div class="info">
	<div class="info1">
		<span class="pull-right"><%= dislpay_view_count(@bulletin) %></span>
		<span class="date"><%= display_date_time(@bulletin.postdate) %></span>
		<% unit = User.find(@bulletin.create_user_id).sub_roles.collect{|t| t.key}.join(" ") rescue nil %>
		<%= " | " if unit %>
		<a href="" class="unit"><%= unit %></a>
	</div>
</div>
<div class="news_image">
	<%#= image_tag(@bulletin.image.url, :size => "320x240") if @bulletin.image.file %>
	<%= link_to image_tag(@bulletin.image.url, :size => "320x240"), @bulletin.image.url, {:target => '_blank', :title => @bulletin.image_identifier} if @bulletin.image.file %>
</div>
<div class="news_paragraph">
	<%= @bulletin.text[I18n.locale].html_safe %>
</div>
<div class="linkAndFile">
	<% if @bulletin.bulletin_links.size > 0 %>
		<div>
			<i class="icons-link"></i>
			<div class="showLink">
					<% @bulletin.bulletin_links.each do | blink | %>
					  <%= link_to blink.i18n_variable[I18n.locale], blink.url, :target => '_blank' %>
					<% end %>
			</div>
		</div>
	<% end %>
	<% if @bulletin.bulletin_files.size > 0 %>
		<div>
			<i class="icons-paperclip"></i>
			<div class="showFile">
					<% @bulletin.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">
	<iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.nccu.edu.tw&amp;send=false&amp;layout=standard&amp;width=450&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=35&amp;appId=263319013700607" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:35px;" allowTransparency="true"></iframe>
</div>
