new issue format

This commit is contained in:
gitlabhq 2011-10-28 12:22:09 +03:00
parent 56d9761844
commit a017181339
8 changed files with 60 additions and 10 deletions

View file

@ -662,6 +662,10 @@ tbody tr:nth-child(2n) td, tbody tr.even td {
background: #4466cc;
color:white;
}
&.normal {
background: #2c5ca6;
color:white;
}
&.notes {
background: #2c5c66;
color:white;

View file

@ -34,7 +34,7 @@ class IssuesController < ApplicationController
end
def show
@notes = @issue.notes
@notes = @issue.notes.order("created_at ASC")
@note = @project.notes.new(:noteable => @issue)
end

View file

@ -7,7 +7,7 @@
= truncate issue.assignee.name, :lenght => 20
%td ##{issue.id}
%td
= truncate(html_escape(issue.title), :length => 50)
= truncate(html_escape(issue.title), :length => 60)
%br
- if issue.critical
%span.tag.high critical

View file

@ -1,6 +1,5 @@
%h2
= "Issue ##{@issue.id} - #{truncate @issue.title, :length => 50}"
= "Issue ##{@issue.id} - #{html_escape(@issue.title)}"
.span-15
-#= simple_format html_escape(@issue.content)
.issue_notes= render "notes/notes"
@ -29,6 +28,16 @@
%td
= image_tag gravatar_icon(@issue.assignee.email), :class => "left", :width => 40, :style => "padding:0 5px;"
= @issue.assignee.name
%tr
%td Tags
%td
- if @issue.critical
%span.tag.high critical
- else
%span.tag.normal normal
- if @issue.today?
%span.tag.today today
%tr
%td Closed?
%td