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
Tatuya Kamada
gitlab-ce
Commits
56d97618
Commit
56d97618
authored
Oct 27, 2011
by
gitlabhq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moving out of body
parent
2258db66
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
14 deletions
+21
-14
app/models/issue.rb
app/models/issue.rb
+3
-3
app/views/issues/_form.html.haml
app/views/issues/_form.html.haml
+4
-4
app/views/issues/_show.html.haml
app/views/issues/_show.html.haml
+1
-1
app/views/issues/show.html.haml
app/views/issues/show.html.haml
+2
-6
db/migrate/20111027152724_issue_conten_to_note.rb
db/migrate/20111027152724_issue_conten_to_note.rb
+11
-0
No files found.
app/models/issue.rb
View file @
56d97618
...
@@ -14,9 +14,9 @@ class Issue < ActiveRecord::Base
...
@@ -14,9 +14,9 @@ class Issue < ActiveRecord::Base
:presence
=>
true
,
:presence
=>
true
,
:length
=>
{
:within
=>
0
..
255
}
:length
=>
{
:within
=>
0
..
255
}
validates
:content
,
#
validates :content,
:presence
=>
true
,
#
:presence => true,
:length
=>
{
:within
=>
0
..
2000
}
#
: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
)
...
...
app/views/issues/_form.html.haml
View file @
56d97618
...
@@ -7,10 +7,10 @@
...
@@ -7,10 +7,10 @@
.span-8
.span-8
=
f
.
label
:title
=
f
.
label
:title
=
f
.
text_
field
:title
,
:style
=>
"width:450px"
=
f
.
text_
area
:title
,
:style
=>
"width:450px; height:100px"
,
:maxlength
=>
255
.span-8
-#
.span-8
=
f
.
label
:content
-#
= f.label :content
=
f
.
text_area
:content
,
:style
=>
"width:450px; height:130px"
-#
= f.text_area :content, :style => "width:450px; height:130px"
.span-8.append-bottom
.span-8.append-bottom
=
f
.
label
:assignee_id
=
f
.
label
:assignee_id
=
f
.
select
(
:assignee_id
,
@project
.
users
.
all
.
collect
{
|
p
|
[
p
.
name
,
p
.
id
]
},
{
:include_blank
=>
"Select user"
})
=
f
.
select
(
:assignee_id
,
@project
.
users
.
all
.
collect
{
|
p
|
[
p
.
name
,
p
.
id
]
},
{
:include_blank
=>
"Select user"
})
...
...
app/views/issues/_show.html.haml
View file @
56d97618
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
=
truncate
issue
.
assignee
.
name
,
:lenght
=>
20
=
truncate
issue
.
assignee
.
name
,
:lenght
=>
20
%td
##{issue.id}
%td
##{issue.id}
%td
%td
=
html_escape
issue
.
title
=
truncate
(
html_escape
(
issue
.
title
),
:length
=>
50
)
%br
%br
-
if
issue
.
critical
-
if
issue
.
critical
%span
.tag.high
critical
%span
.tag.high
critical
...
...
app/views/issues/show.html.haml
View file @
56d97618
%h2
%h2
=
"Issue #
#{
@issue
.
id
}
-
#{
@issue
.
title
}
"
=
"Issue #
#{
@issue
.
id
}
-
#{
truncate
@issue
.
title
,
:length
=>
50
}
"
.span-15
.span-15
=
simple_format
html_escape
(
@issue
.
content
)
-#= simple_format html_escape(@issue.content)
.clear
%br
.issue_notes
=
render
"notes/notes"
.issue_notes
=
render
"notes/notes"
.span-8.right
.span-8.right
.span-8
.span-8
...
...
db/migrate/20111027152724_issue_conten_to_note.rb
0 → 100644
View file @
56d97618
class
IssueContenToNote
<
ActiveRecord
::
Migration
def
up
raise
"Not ready"
Issue
.
find_each
(
:batch_size
=>
100
)
do
|
issue
|
end
end
def
down
end
end
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