Skip to content
Snippets Groups Projects
Commit 56d97618 authored by gitlabhq's avatar gitlabhq
Browse files

moving out of body

parent 2258db66
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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)
Loading
Loading
Loading
Loading
@@ -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" })
Loading
Loading
Loading
Loading
@@ -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
Loading
Loading
%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
Loading
Loading
class IssueContenToNote < ActiveRecord::Migration
def up
raise "Not ready"
Issue.find_each(:batch_size => 100) do |issue|
end
end
def down
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment