2014-01-14 11:54:35 +00:00
|
|
|
<% # encoding: utf-8 %>
|
|
|
|
<h1 class="h1"><%= @bulletin.title %></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 = @bulletin.cache_dept[I18n.locale.to_s] rescue nil %>
|
|
|
|
<span><%= link_to unit,panel_announcement_front_end_index_bulletins_by_unit_path(:name=>unit) unless unit.blank? %></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-08-22 07:33:28 +00:00
|
|
|
<div class="news_image">
|
|
|
|
<%#= image_tag(@bulletin.image.url, :size => "320x240") if @bulletin.image.file %>
|
|
|
|
<%= link_to image_tag(@bulletin.image.url), @bulletin.image.url, {:target => '_blank', :title => @bulletin.image_identifier} if @bulletin.image.file %>
|
|
|
|
<span class="image_description"><%= @bulletin.image_description unless @bulletin.image_description.blank? %></span>
|
|
|
|
</div>
|
2014-01-14 11:54:35 +00:00
|
|
|
<div class="news_paragraph">
|
|
|
|
<%= @bulletin.text.html_safe rescue '' %>
|
|
|
|
</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.title, 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.title, bfile.file.url, {:target => '_blank', :title => bfile.description} if bfile.file.file %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
|
2014-03-13 07:20:44 +00:00
|
|
|
<%= share_links(@bulletin, 'announcement') %>
|