<%= b.status_for_table %> | <%= b.category.title %> |
<%
case I18n.locale
when :en
if b.title_translations[I18n.locale].blank?
title = b.title_translations["zh_tw"]
else
title = b.title_translations[I18n.locale]
end
when :zh_tw
if b.title_translations[I18n.locale].blank?
title = b.title_translations["en"]
else
title = b.title_translations[I18n.locale]
end
end
%>
<% if b.expired? %>
<%= title %> <%= t(:expired) %>
<% elsif b.rejected %>
<%= title %> <%= t(:rejected) %> : <%= b.rejection_reason rescue "" %>
<% elsif !b.approved? %>
<%= title %> <%= t(:pending) %>
<% else %>
<%= title %>
<% end %>
|
<%= format_value b.postdate %> | "><%= format_value b.deadline %> | <%= content_tag(:div, image_tag(b.image.file.blank? ? "/assets/news_alt.jpg" : b.image.url), {:class => "img-peview", :rel=>"popover", "data-content"=>"#{image_tag(b.image.file.blank? ? "/assets/news_alt.jpg" : b.image.url)}", "data-trigger"=>"hover", "data-placement"=>"left"}) %> | <% Unit.where({:id => b.unit_id}).each do |u| %> <%= u.name %> <% end %> <% Department.where({:id => b.department}).each do |d| %> -<%= d.name %> <% end %> | <%= b.view_count %> |
" class="footable-row-detail-inner" style="display: none;">
<%= t(:tags) %> :
<% b.tags.each do |tag| %>
<%= tag.name %>
<% end %>
<%= t("news.email_to") %> :
<% b.email_members.each do |member| %>
<%= member.name %>
<% end %>
<% unless b.other_mailaddress.nil? %>
<% b.other_mailaddress.split(',').each do |mailaddress| %>
<%= mailaddress %>
<% end %>
<% end %>
|