未指派链接问题
This commit is contained in:
parent
6a113bdd7e
commit
c64822d7a1
|
@ -46,12 +46,10 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="homepagePostSubmitContainer">
|
<div class="homepagePostSubmitContainer">
|
||||||
<div class="homepagePostAssignTo"><span class="fontGrey3">指派给</span>
|
<div class="homepagePostAssignTo"><span class="fontGrey3">指派给</span>
|
||||||
<% 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">
|
||||||
|
|
Loading…
Reference in New Issue