2013-04-29 19:13:45 +01:00
|
|
|
- path = polymorphic_path [@project || issue.project, issue.pull_request ? issue.pull_request : issue]
|
2012-06-08 09:11:46 +01:00
|
|
|
|
2012-02-23 14:48:31 +00:00
|
|
|
%tr#row1{:name => "row", :class => issue.labels.map(&:name).compact}
|
2012-02-20 16:54:45 +00:00
|
|
|
%td.td0
|
|
|
|
%span{:style => "display: none;"}=issue.serial_id
|
|
|
|
%td.td1=issue.serial_id
|
|
|
|
%td
|
2012-06-08 09:11:46 +01:00
|
|
|
%a{:href => path}
|
2013-04-29 19:13:45 +01:00
|
|
|
%div.issue_title
|
|
|
|
-prefix = @project ? '' : "<span style=\"color: #999;\">#{issue.project.name}</span>: "
|
|
|
|
="#{prefix} #{issue.title}".html_safe
|
2012-02-20 16:54:45 +00:00
|
|
|
.smalltext
|
2013-03-19 13:32:31 +00:00
|
|
|
=issue.send(@sort == :created ? :created_at : :updated_at).to_s(:long)
|
2012-04-13 20:44:04 +01:00
|
|
|
=t("layout.by") if issue.user
|
|
|
|
=link_to(issue.user.uname, user_path(issue.user)) if issue.user
|
2012-03-23 13:31:51 +00:00
|
|
|
-issue.labels.each do |label|
|
|
|
|
.left.nomargin
|
|
|
|
.label.selected.tracker.left
|
2012-02-23 14:48:31 +00:00
|
|
|
.labeltext.selected{:style => "background: ##{label.color};"}=label.name
|
2013-04-04 21:25:36 +01:00
|
|
|
%td.td3{:class => (issue.pull_request ? 'td3-pull' : '')}
|
|
|
|
- if issue.pull_request
|
2012-06-08 09:11:46 +01:00
|
|
|
%a{:href => path}
|
|
|
|
.code #
|
2013-04-04 21:25:36 +01:00
|
|
|
= link_to image_tag(avatar_url(issue.assignee), :alt => 'avatar', :class => 'avatar'), user_path(issue.assignee) if issue.assignee
|
|
|
|
%a.answers{:href => "#{path}#block-list"}
|
|
|
|
= image_tag 'answers.png', :class => 'pic'
|
2013-04-08 12:04:59 +01:00
|
|
|
.count=issue.comments.where(:automatic => false).count
|