Commit 94fd9a6e authored by Steven Verbeek's avatar Steven Verbeek

Added issue description.

parent 8a9e90da
...@@ -24,6 +24,10 @@ class Issue < ActiveRecord::Base ...@@ -24,6 +24,10 @@ class Issue < ActiveRecord::Base
validates :title, validates :title,
:presence => true, :presence => true,
:length => { :within => 0..255 } :length => { :within => 0..255 }
validates :description,
:presence => true,
:length => { :within => 0..2000 }
scope :critical, where(:critical => true) scope :critical, where(:critical => true)
scope :non_critical, where(:critical => false) scope :non_critical, where(:critical => false)
...@@ -57,6 +61,7 @@ end ...@@ -57,6 +61,7 @@ end
# #
# id :integer not null, primary key # id :integer not null, primary key
# title :string(255) # title :string(255)
# description :text
# assignee_id :integer # assignee_id :integer
# author_id :integer # author_id :integer
# project_id :integer # project_id :integer
......
...@@ -9,8 +9,12 @@ ...@@ -9,8 +9,12 @@
%li= msg %li= msg
.clearfix .clearfix
= f.label :title, "Issue Message" = f.label :title, "Issue Subject"
.input= f.text_area :title, :maxlength => 255, :class => "xxlarge" .input= f.text_field :title, :maxlength => 255
.clearfix
= f.label :description, "Issue Description"
.input= f.text_area :description, :maxlength => 2000, :class => "xxlarge"
.clearfix .clearfix
= f.label :assignee_id = f.label :assignee_id
......
%h3 %h3
Issue ##{@issue.id} @issue.title
%small %small
created at created at
= @issue.created_at.stamp("Aug 21, 2011") = @issue.created_at.stamp("Aug 21, 2011")
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
%hr %hr
%div= simple_format @issue.title %div= simple_format @issue.description
.issue_notes#notes= render "notes/notes", :tid => @issue.id, :tt => "issue" .issue_notes#notes= render "notes/notes", :tid => @issue.id, :tt => "issue"
...@@ -27,6 +27,7 @@ ActiveRecord::Schema.define(:version => 20120307095918) do ...@@ -27,6 +27,7 @@ ActiveRecord::Schema.define(:version => 20120307095918) do
create_table "issues", :force => true do |t| create_table "issues", :force => true do |t|
t.string "title" t.string "title"
t.text "description"
t.integer "assignee_id" t.integer "assignee_id"
t.integer "author_id" t.integer "author_id"
t.integer "project_id" t.integer "project_id"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment