Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
94fd9a6e
Commit
94fd9a6e
authored
Mar 17, 2012
by
Steven Verbeek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added issue description.
parent
8a9e90da
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
5 deletions
+15
-5
app/models/issue.rb
app/models/issue.rb
+5
-0
app/views/issues/_form.html.haml
app/views/issues/_form.html.haml
+6
-2
app/views/issues/show.html.haml
app/views/issues/show.html.haml
+3
-3
db/schema.rb
db/schema.rb
+1
-0
No files found.
app/models/issue.rb
View file @
94fd9a6e
...
@@ -25,6 +25,10 @@ class Issue < ActiveRecord::Base
...
@@ -25,6 +25,10 @@ class Issue < ActiveRecord::Base
: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
...
...
app/views/issues/_form.html.haml
View file @
94fd9a6e
...
@@ -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
...
...
app/views/issues/show.html.haml
View file @
94fd9a6e
%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"
db/schema.rb
View file @
94fd9a6e
...
@@ -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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment