% # encoding: utf-8 %>
<%= @bulletin.title %>
<%= dislpay_view_count(@bulletin) %>
<%= display_date_time(@bulletin.postdate) %>
<% unit = @bulletin.cache_dept[I18n.locale.to_s] rescue nil %>
<%= link_to unit,panel_announcement_front_end_index_bulletins_by_unit_path(:name=>unit) unless unit.blank? %>
<%#= 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 %>
<%= @bulletin.text.html_safe rescue '' %>
<% if @bulletin.bulletin_links.size > 0 %>
<% @bulletin.bulletin_links.each do | blink | %>
<%= link_to blink.title, blink.url, :target => '_blank' %>
<% end %>
<% end %>
<% if @bulletin.bulletin_files.size > 0 %>
<% @bulletin.bulletin_files.each do | bfile | %>
<%= link_to bfile.title, bfile.file.url, {:target => '_blank', :title => bfile.description} if bfile.file.file %>
<% end %>
<% end %>
<% unless @bulletin.rss_link.blank? %>
<%= link_to t('ntu.rss_origin'), @bulletin.rss_link %>
<% end %>
<% unless @bulletin.user_ids.blank? %>
<% end %>
<%= share_links(@bulletin, 'announcement') %>