2015-04-07 12:48:47 +08:00
|
|
|
|
<% issue_list(issues) do |issue, level| -%>
|
2014-12-18 09:33:26 +08:00
|
|
|
|
<% if @query.grouped? && (group = @query.group_by_column.value(issue)) != previous_group %>
|
2014-10-23 11:30:34 +08:00
|
|
|
|
<% reset_cycle %>
|
|
|
|
|
<% previous_group = group %>
|
2014-12-18 09:33:26 +08:00
|
|
|
|
<% end %>
|
2015-04-07 12:48:47 +08:00
|
|
|
|
<!-- CONTENT LIST -->
|
|
|
|
|
<div class="problem_main">
|
|
|
|
|
<% column_content = ( query.inline_columns.map {|column| "#{column_content_new(column, issue)}"}) %>
|
|
|
|
|
<% unless issue.author.nil? || issue.author.name == "Anonymous" %>
|
2015-04-09 08:43:51 +08:00
|
|
|
|
<span class="issues_icon fl"></span>
|
2015-04-07 12:48:47 +08:00
|
|
|
|
<div class="problem_txt fl">
|
|
|
|
|
<%= link_to issue.author.name, user_path(issue.author), :class => "problem_name c_orange fl" %>
|
2015-04-09 08:43:51 +08:00
|
|
|
|
<span class="fl"><%= l(:label_post_on_issue) %>(<%= "#{raw column_content[2]}" %>):</span>
|
2015-04-09 09:55:21 +08:00
|
|
|
|
<%=link_to "#{column_content[4]}<span class = '#{get_issue_type(column_content[1])}'>#{get_issue_typevalue(column_content[1])}</span>".html_safe, issue_path(issue.id), :class => "problem_tit02 fl" %>
|
2015-04-09 08:43:51 +08:00
|
|
|
|
<div class="cl"></div>
|
2015-04-07 12:48:47 +08:00
|
|
|
|
<p>
|
|
|
|
|
<% unless issue.assigned_to_id.nil? %>
|
|
|
|
|
<%= l(:field_assigned_to) %>
|
|
|
|
|
<%=link_to issue.assigned_to(@user), user_path(issue.assigned_to(@user)), :class => "problem_name c_orange f1" %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<%= l(:label_updated_time_on, format_date(issue.updated_on)).html_safe %>
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
2015-04-11 15:34:59 +08:00
|
|
|
|
<%=link_to "<span class = 'pic_mes'>#{issue.journals.all.count}</span>".html_safe, issue_path(issue.id), :class => "pro_mes_w" %>
|
|
|
|
|
|
2015-04-09 08:43:51 +08:00
|
|
|
|
<div class="cl"></div>
|
2015-04-07 12:48:47 +08:00
|
|
|
|
<% end %>
|
|
|
|
|
<div class="cl"></div>
|
2014-12-18 09:33:26 +08:00
|
|
|
|
</div>
|
2015-04-07 12:48:47 +08:00
|
|
|
|
<% end -%>
|