Commit 56d9761844b2665e9e48d50f15f7ac3a63d60618
1 parent
2258db66
Exists in
master
and in
4 other branches
moving out of body
Showing
5 changed files
with
21 additions
and
14 deletions
Show diff stats
app/models/issue.rb
... | ... | @@ -14,9 +14,9 @@ class Issue < ActiveRecord::Base |
14 | 14 | :presence => true, |
15 | 15 | :length => { :within => 0..255 } |
16 | 16 | |
17 | - validates :content, | |
18 | - :presence => true, | |
19 | - :length => { :within => 0..2000 } | |
17 | + #validates :content, | |
18 | + #:presence => true, | |
19 | + #:length => { :within => 0..2000 } | |
20 | 20 | |
21 | 21 | scope :critical, where(:critical => true) |
22 | 22 | scope :non_critical, where(:critical => false) | ... | ... |
app/views/issues/_form.html.haml
... | ... | @@ -7,10 +7,10 @@ |
7 | 7 | |
8 | 8 | .span-8 |
9 | 9 | = f.label :title |
10 | - = f.text_field :title, :style => "width:450px" | |
11 | - .span-8 | |
12 | - = f.label :content | |
13 | - = f.text_area :content, :style => "width:450px; height:130px" | |
10 | + = f.text_area :title, :style => "width:450px; height:100px", :maxlength => 255 | |
11 | + -#.span-8 | |
12 | + -#= f.label :content | |
13 | + -#= f.text_area :content, :style => "width:450px; height:130px" | |
14 | 14 | .span-8.append-bottom |
15 | 15 | = f.label :assignee_id |
16 | 16 | = f.select(:assignee_id, @project.users.all.collect {|p| [ p.name, p.id ] }, { :include_blank => "Select user" }) | ... | ... |
app/views/issues/_show.html.haml
app/views/issues/show.html.haml
1 | 1 | %h2 |
2 | - = "Issue ##{@issue.id} - #{@issue.title}" | |
2 | + = "Issue ##{@issue.id} - #{truncate @issue.title, :length => 50}" | |
3 | 3 | |
4 | 4 | .span-15 |
5 | - = simple_format html_escape(@issue.content) | |
6 | - | |
7 | - | |
8 | - .clear | |
9 | - %br | |
5 | + -#= simple_format html_escape(@issue.content) | |
10 | 6 | .issue_notes= render "notes/notes" |
11 | 7 | .span-8.right |
12 | 8 | .span-8 | ... | ... |