<%= 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 %> | <%= MemberProfile.find(b.update_user.member_profile_id).last_name_translations[I18n.locale.to_s] rescue " " %> <%= MemberProfile.find(b.update_user.member_profile_id).first_name_translations[I18n.locale.to_s] rescue " " %> | <%= b.view_count %> |
" class="footable-row-detail-inner" style="display: none;">
<%= t(:tags) %> :
<% b.tags.each do |tag| %>
<%= tag.name %>
<% end %>
<%= t("announcement.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 %>
|