rosa-build/app/views/projects/issues/_issue.html.haml

29 lines
987 B
Plaintext
Raw Normal View History

2012-06-08 09:11:46 +01:00
-path = polymorphic_path [@project, issue.pull_request ? issue.pull_request : @issue]
2012-02-23 14:48:31 +00:00
%tr#row1{:name => "row", :class => issue.labels.map(&:name).compact}
%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}
2012-02-29 18:33:01 +00:00
%div.issue_title=issue.title
.smalltext
=issue.created_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
-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
%td.td3
2012-06-04 18:00:19 +01:00
-if issue.pull_request
2012-06-08 09:11:46 +01:00
%a{:href => path}
.code #
.avatar
2012-04-13 20:44:04 +01:00
=link_to image_tag(avatar_url(issue.assignee), :alt => 'avatar'), user_path(issue.assignee) if issue.assignee
2012-06-08 09:11:46 +01:00
%a{:href => "#{path}#block-list"}
.answers
.pic= image_tag 'answers.png'
.count=issue.comments.count
.both