BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
14 deletions
+21
-14
issue.rb
app/models/issue.rb
+3
-3
_form.html.haml
app/views/issues/_form.html.haml
+4
-4
_show.html.haml
app/views/issues/_show.html.haml
+1
-1
show.html.haml
app/views/issues/show.html.haml
+2
-6
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
: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
)
...
...
app/views/issues/_form.html.haml
View file @
56d97618
...
...
@@ -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"
})
...
...
app/views/issues/_show.html.haml
View file @
56d97618
...
...
@@ -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
...
...
app/views/issues/show.html.haml
View file @
56d97618
%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
...
...
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