<% # encoding: utf-8 %>

<br />
<br />
<br />

<p id="notice"><%= flash_messages %></p>

<ul>
	<li>
  <b><%= t('announcement.category') %></b>
  <%= @bulletin.bulletin_category.i18n_variable[I18n.locale] rescue nil %>
	</li>
	<li>
  <b><%= t('announcement.postdate') %></b>
  <%= display_date(@bulletin.postdate) %>
	</li>
	<li>
  <b><%= t('announcement.title') %></b>
  <%= @bulletin.title %>
	</li>
	<li>
  <%#= 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 %>
	</li>
	<li>
  <b><%= t('announcement.subtitle') %></b>
  <%= @bulletin.subtitle %>
	</li>
	<li>
  <b><%= t('announcement.text') %></b>
  <%= @bulletin.text %>
	</li>
	<li>
	<li>
	<b><%= t('announcement.link') %></b>
	<% @bulletin.bulletin_links.each do | blink | %>
    <%= link_to blink.name, blink.url, :target => '_blank' %>
	<% end %>
	</li>
	<li>
	<b><%= t('announcement.file') %></b>
	<% @bulletin.bulletin_files.each do | bfile | %>
	<%= link_to bfile.filetitle, bfile.file.url, {:target => '_blank', :title => bfile.description} if bfile.file.file %>
	<% end %>
	</li>
	<li>
  <b><%= t('announcement.張貼者') %></b>
  <%= User.find(@bulletin.create_user_id).name %>
	</li>
	<li>
  <b><%= t('announcement.最後修改時間') %></b>
  <%= display_date(@bulletin.updated_at) %>
	</li>


<%= link_back %>
