change display of user dept for showing announcement

This commit is contained in:
Matthew K. Fu JuYuan 2012-06-26 16:21:18 +08:00
parent 2b54067ecb
commit df722ba90f
1 changed files with 2 additions and 4 deletions

View File

@ -3,10 +3,8 @@
<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 = User.find(@bulletin.create_user_id).sub_roles.collect{|t| t.key}.join(" ") rescue nil %>
<%= " | " if unit %>
<a href="" class="unit"><%= unit %></a>
<span class="date"><%= display_date_time(@bulletin.postdate) %></span>
<span><%= User.find(@bulletin.create_user_id).cache_dept[I18n.locale.to_s] rescue nil %></span>
</div>
</div>
<div class="news_image">