2013-08-01 10:33:49 +08:00
|
|
|
<div class="autoscroll">
|
2013-12-11 17:02:05 +08:00
|
|
|
<ul>
|
2013-12-11 16:50:45 +08:00
|
|
|
<% issue_list(issues) do |issue, level| -%>
|
|
|
|
<% if @query.grouped? && (group = @query.group_by_column.value(issue)) != previous_group %>
|
|
|
|
<% reset_cycle %>
|
|
|
|
<% previous_group = group %>
|
|
|
|
<% end %>
|
|
|
|
<div style="">
|
|
|
|
<li id="issue-<%= issue.id %>" class="hascontextmenu-1 <%= issue.css_classes %> <%= level > 0 ? "idnt idnt-#{level}" : nil %>">
|
|
|
|
<% column_content = ( query.inline_columns.map {|column| "#{column_content_new(column, issue)}"}) %>
|
2013-08-01 10:33:49 +08:00
|
|
|
|
2013-12-11 16:50:45 +08:00
|
|
|
<!-- 在这里添加赞和踩-->
|
2014-06-13 16:09:43 +08:00
|
|
|
<span id="praise_tread" style="float: right"> <%= render :partial => "/praise_tread/praise_tread",:locals => {:obj => issue,:show_flag => true,:user_id =>User.current.id,:horizontal => false}%> </span>
|
2013-08-12 14:50:54 +08:00
|
|
|
|
2013-12-11 16:50:45 +08:00
|
|
|
<% if issue.tracker_id == 1 %>
|
|
|
|
<%= image_tag("/images/task.png", :class => "img-tag-issues") %>
|
|
|
|
<% end %>
|
|
|
|
<% if issue.tracker_id == 2 %>
|
|
|
|
<%= image_tag("/images/feature.png", :class => "img-tag-issues") %>
|
|
|
|
<% end %>
|
|
|
|
<% if issue.tracker_id == 3 %>
|
|
|
|
<%= image_tag("/images/support.png", :class => "img-tag-issues") %>
|
|
|
|
<% end %>
|
|
|
|
<% if issue.tracker_id == 4 %>
|
|
|
|
<%= image_tag("/images/issues.png", :class => "img-tag-issues") %>
|
|
|
|
<% end %>
|
2013-08-12 14:50:54 +08:00
|
|
|
|
2013-12-11 17:02:05 +08:00
|
|
|
<ul class="issue_list">
|
2013-12-11 16:50:45 +08:00
|
|
|
<% unless issue.author.nil? || issue.author.name == "Anonymous" %>
|
|
|
|
<ul class="list-group-item-meta">
|
2014-07-04 16:00:18 +08:00
|
|
|
<span> <%= link_to issue.author.name, user_path(issue.author), :class => "bid_user_u" %></span>
|
|
|
|
<%= l(:label_post_on)%> <% a = [] %>
|
2013-12-11 16:50:45 +08:00
|
|
|
<% a << column_content[1] %>
|
2014-03-25 09:09:46 +08:00
|
|
|
<%# a << "##{column_content[0]}" << "(#{raw column_content[2]}):" << column_content[4] %>
|
|
|
|
<% a << "#{issue.source_from}" << "(#{raw column_content[2]}):" << column_content[4] %>
|
2014-07-04 16:00:18 +08:00
|
|
|
<%= link_to a.join(' '), issue_path(issue.id), :class => "issue-link" %>
|
2013-08-03 16:54:48 +08:00
|
|
|
</ul>
|
2013-12-11 16:50:45 +08:00
|
|
|
<% end -%>
|
|
|
|
<ul class="list-group-item-meta">
|
|
|
|
<div class="issue-list-description">
|
2013-12-18 20:24:01 +08:00
|
|
|
<%= l(:field_description)%>: <%= issue.description %>
|
2013-12-11 16:50:45 +08:00
|
|
|
</div>
|
|
|
|
</ul>
|
|
|
|
<ul class="list-group-item-meta">
|
|
|
|
<% unless issue.assigned_to_id.nil? %>
|
2013-12-18 20:24:01 +08:00
|
|
|
<span><%= l(:field_assigned_to)%> </span><%= raw column_content[5] %>
|
2013-12-11 16:50:45 +08:00
|
|
|
<% end %>
|
|
|
|
<%= l(:label_updated_time_on, format_date(issue.updated_on)).html_safe %>
|
|
|
|
<div class="find-comment-class">
|
2014-07-04 16:00:18 +08:00
|
|
|
<span><%= link_to l(:label_find_all_comments), issue_path(issue.id) %></span><%= l(:label_comments_count, :count => issue.journals.all.count) %>
|
2013-12-11 16:50:45 +08:00
|
|
|
</div>
|
|
|
|
</ul>
|
|
|
|
</ul>
|
2013-09-28 16:03:23 +08:00
|
|
|
|
2013-12-11 16:50:45 +08:00
|
|
|
</li>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<% end -%>
|
2013-08-03 16:54:48 +08:00
|
|
|
</ul>
|
2014-01-06 19:29:18 +08:00
|
|
|
</div>
|