issue 指派给为空时,样式错误

This commit is contained in:
daiao 2016-10-28 18:04:56 +08:00
parent 1279c27ffd
commit de63f6fbbc
2 changed files with 3 additions and 3 deletions

View File

@ -203,7 +203,7 @@
</script> </script>
<!--缺陷列表开始--> <!--缺陷列表开始-->
<div id="myissues_con" class="myissues_con "> <div id="myissues_con" class="myissues_con mb10">
<div class="clear mb5"> <div class="clear mb5">
<div class="issues_statistics fl clear"> <div class="issues_statistics fl clear">
<ul> <ul>

View File

@ -48,9 +48,9 @@
<div class="homepagePostAssignTo"><span class="fontGrey3">指派给</span>&nbsp;&nbsp; <div class="homepagePostAssignTo"><span class="fontGrey3">指派给</span>&nbsp;&nbsp;
<% unless activity.assigned_to_id.nil? %> <% unless activity.assigned_to_id.nil? %>
<% if activity.try(:assigned_to).try(:realname) == ' ' %> <% if activity.try(:assigned_to).try(:realname) == ' ' %>
<%= link_to activity.try(:assigned_to), user_path(activity.assigned_to_id), :class => "newsBlue mr15" %> <%= 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).try(:realname), user_path(activity.assigned_to_id), :class => "newsBlue mr15" %> <%= link_to activity.try(:assigned_to) ? activity.try(:assigned_to).try(:realname) : "未指派", user_path(activity.assigned_to_id), :class => "newsBlue mr15" %>
<% end %> <% end %>
<% end %> <% end %>
</div> </div>