59 lines
2.5 KiB
Plaintext
59 lines
2.5 KiB
Plaintext
<% unless activity.author.nil? %>
|
|
<div class="issues_list_box clear" id="user_activity_<%= user_activity_id%>">
|
|
<div class="issues_ciricons fl ">
|
|
<% if activity.status_id.to_i == 5 %>
|
|
<span class="issues_ciricons_02"></span>
|
|
<% else %>
|
|
<span class="issues_ciricons_01"></span>
|
|
<% end %>
|
|
</div>
|
|
<div class=" fl ml5">
|
|
<div class="issues_list_titlebox clear">
|
|
<a href="<%= issue_path(activity) %>" class="issues_list_title fl" target="_blank"><%= activity.subject.to_s %></a>
|
|
<% if activity.journals.count > 0%>
|
|
<span class="issues_icons_mes fl mr5 ml5 "></span>
|
|
<span class="fl mt2"><%= activity.journals.count %></span>
|
|
<% end %>
|
|
<div class="cl"></div>
|
|
</div>
|
|
<div class="issues_list_small">
|
|
<% if activity.try(:author).try(:realname) == ' ' %>
|
|
<%= link_to activity.try(:author), user_path(activity.author_id), :class => "fl issues_list_name" %>
|
|
<% else %>
|
|
<%= link_to activity.try(:author).try(:realname), user_path(activity.author_id), :class => "fl issues_list_name" %>
|
|
<% end %>
|
|
<p class="fl ml10"> <span class="mr5"><%=format_time(activity.created_on) %></span>发布</p>
|
|
</div>
|
|
</div>
|
|
<ul class="issues_list_txt fr">
|
|
<li class="issues_list_min c_grey">
|
|
<% case activity.tracker_id %>
|
|
<% when 1%>
|
|
缺陷
|
|
<% when 2%>
|
|
功能
|
|
<% when 3%>
|
|
支持
|
|
<% when 4%>
|
|
任务
|
|
<% when 5%>
|
|
周报
|
|
<% end %>
|
|
</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" %>
|
|
<% else %>
|
|
<%= link_to activity.try(:assigned_to).try(:realname), user_path(activity.assigned_to_id), :class => "c_grey" %>
|
|
<% end %>
|
|
<% end %></li>
|
|
<li class="c_grey"> 20161231 </li>
|
|
<li class="issues_list_min c_grey">草稿</li>
|
|
<li class="c_green">90%</li>
|
|
<li class="issues_list_min"><a href="#" class="sy_icons_edit fl mt15" alt="编辑"></a><a href="#" class="sy_icons_del fl mt15" alt="删除"></a></li>
|
|
</ul>
|
|
</div>
|
|
<% end %>
|
|
|