未指派链接问题

This commit is contained in:
huang 2016-10-28 19:05:39 +08:00
parent 6a113bdd7e
commit c64822d7a1
1 changed files with 4 additions and 6 deletions

View File

@ -46,12 +46,10 @@
</div>
<div class="homepagePostSubmitContainer">
<div class="homepagePostAssignTo"><span class="fontGrey3">指派给</span>&nbsp;&nbsp;
<% unless activity.assigned_to_id.nil? %>
<% if activity.try(:assigned_to).try(:realname) == ' ' %>
<%= link_to activity.try(:assigned_to) ? activity.try(:assigned_to) : "未指派", user_path(activity.assigned_to_id), :class => "newsBlue mr15" %>
<% if activity.assigned_to_id.blank? || activity.assigned_to_id == 0 %>
<a class="newsBlue mr15">未指派</a>
<% else %>
<%= link_to activity.try(:assigned_to) ? activity.try(:assigned_to).try(:realname) : "未指派", user_path(activity.assigned_to_id), :class => "newsBlue mr15" %>
<% end %>
<%= link_to activity.try(:assigned_to).show_name, user_path(activity.assigned_to_id), :class => "newsBlue mr15" %>
<% end %>
</div>
<div class="homepagePostDeadline fl">