issues列表功能

This commit is contained in:
daiao 2016-09-23 14:53:36 +08:00
parent ca00f0b9f8
commit 7b5fc8b323
2 changed files with 15 additions and 6 deletions

View File

@ -12,7 +12,7 @@
<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>
<span class="fl mr5 "><%= activity.journals.count %></span>
<% end %>
<div class="cl"></div>
</div>
@ -48,10 +48,19 @@
<%= 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>
<li class="c_grey" title="<%= activity.fixed_version %>"><%= activity.fixed_version %></li>
<li class="issues_list_min c_grey"><%= activity.status.name%></li>
<li class="c_green"><%= activity.done_ratio %>%</li>
<li class="issues_list_min">
<%= link_to "", issue_path(activity.id, :edit => 'true'), :class => 'sy_icons_edit fl mt15', :accesskey => accesskey(:edit) if activity.editable? && User.current.allowed_to?(:edit_issues, activity.project) %>
<% if !defined?(project_id) && !defined?(user_id) %>
<%= link_to "", issue_path(activity.id), :data => {:confirm => issues_destroy_confirmation_message(activity)}, :method => :delete, :class => 'sy_icons_del fl mt15' if User.current.allowed_to?(:delete_issues, activity.project) %>
<% elsif defined?(project_id) %>
<%= link_to "", issue_path(activity.id, :page_classify => "project_page", :page_id => project_id), :data => {:confirm => issues_destroy_confirmation_message(activity)}, :method => :delete, :class => 'sy_icons_del fl mt15' if User.current.allowed_to?(:delete_issues, activity.project) %>
<% elsif defined?(user_id) %>
<%= link_to "", issue_path(activity.id, :page_classify => "user_page", :page_id => user_id), :data => {:confirm => issues_destroy_confirmation_message(activity)}, :method => :delete, :class => 'sy_icons_del fl mt15' if User.current.allowed_to?(:delete_issues, activity.project) %>
<% end %>
</li>
</ul>
</div>
<% end %>

Binary file not shown.

After

Width:  |  Height:  |  Size: 195 KiB