: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)
.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" })
= 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
%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
--- /dev/null
+class IssueContenToNote < ActiveRecord::Migration
+ def up
+ raise "Not ready"
+ Issue.find_each(:batch_size => 100) do |issue|
+
+ end
+ end
+
+ def down
+ end
+end