未指派链接问题

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