修改issue指派给我名称显示问题

This commit is contained in:
daiao 2016-09-27 09:16:11 +08:00
parent b1496e1874
commit b2ed335146
1 changed files with 2 additions and 2 deletions

View File

@ -42,8 +42,8 @@
</li>
<li class="c_grey">
<% unless activity.assigned_to_id.nil? %>
<% if activity.try(:assigned_to).try(:realname) == ' ' %>
<%= link_to activity.try(:assigned_to), user_path(activity.assigned_to_id), :class => "c_grey" %>
<% if activity.try(:assigned_to).try(:realname).empty? %>
<%= link_to activity.assigned_to, user_path(activity.assigned_to_id), :class => "c_grey" %>
<% else %>
<%= link_to activity.try(:assigned_to).try(:realname), user_path(activity.assigned_to_id), :class => "c_grey" %>
<% end %>