moving out of body

This commit is contained in:
gitlabhq 2011-10-27 18:46:30 +03:00
parent 2258db66c2
commit 56d9761844
5 changed files with 21 additions and 14 deletions

View file

@ -14,9 +14,9 @@ class Issue < ActiveRecord::Base
:presence => true,
:length => { :within => 0..255 }
validates :content,
:presence => true,
:length => { :within => 0..2000 }
#validates :content,
#:presence => true,
#:length => { :within => 0..2000 }
scope :critical, where(:critical => true)
scope :non_critical, where(:critical => false)

View file

@ -7,10 +7,10 @@
.span-8
= f.label :title
= f.text_field :title, :style => "width:450px"
.span-8
= f.label :content
= f.text_area :content, :style => "width:450px; height:130px"
= f.text_area :title, :style => "width:450px; height:100px", :maxlength => 255
-#.span-8
-#= f.label :content
-#= f.text_area :content, :style => "width:450px; height:130px"
.span-8.append-bottom
= f.label :assignee_id
= f.select(:assignee_id, @project.users.all.collect {|p| [ p.name, p.id ] }, { :include_blank => "Select user" })

View file

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

View file

@ -1,12 +1,8 @@
%h2
= "Issue ##{@issue.id} - #{@issue.title}"
= "Issue ##{@issue.id} - #{truncate @issue.title, :length => 50}"
.span-15
= simple_format html_escape(@issue.content)
.clear
%br
-#= simple_format html_escape(@issue.content)
.issue_notes= render "notes/notes"
.span-8.right
.span-8

View file

@ -0,0 +1,11 @@
class IssueContenToNote < ActiveRecord::Migration
def up
raise "Not ready"
Issue.find_each(:batch_size => 100) do |issue|
end
end
def down
end
end