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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
ff1cbbc5
Commit
ff1cbbc5
authored
Dec 14, 2011
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue restyle
parent
7b4f5452
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
41 deletions
+52
-41
app/views/issues/_form.html.haml
app/views/issues/_form.html.haml
+51
-40
spec/requests/issues_spec.rb
spec/requests/issues_spec.rb
+1
-1
No files found.
app/views/issues/_form.html.haml
View file @
ff1cbbc5
%div
.issue-form-holder
%div
.issue-form-holder
.issue-show-holder.ui-box
=
form_for
[
@project
,
@issue
],
:remote
=>
request
.
xhr?
do
|
f
|
%h3
%div
=
@issue
.
new_record?
?
"New issue"
:
"Edit Issue #
#{
@issue
.
id
}
"
%span
.entity-info
-
unless
@issue
.
new_record?
-
if
request
.
xhr?
.right
=
link_to
"#back"
,
:onclick
=>
"backToIssues();"
do
-
if
@issue
.
closed
.entity-button
%span
.tag.high
Resolved
Back
-
else
%i
%span
.tag.today
Open
-
else
=
form_for
[
@project
,
@issue
],
:remote
=>
"true"
do
|
f
|
-
if
@issue
.
new_record?
.data
=
link_to
project_issues_path
(
@project
)
do
%table
.no-borders
.entity-button
-
if
@issue
.
errors
.
any?
Back
%tr
%i
%td
Errors
-
else
%td
=
link_to
project_issue_path
(
@project
,
@issue
)
do
#error_explanation
.entity-button
-
@issue
.
errors
.
full_messages
.
each
do
|
msg
|
Back
%span
=
msg
%i
%br
%h2
=
@issue
.
new_record?
?
"New Issue"
:
"Edit Issue #
#{
@issue
.
id
}
"
%tr
%hr
%td
=
f
.
label
:title
%table
.no-borders
%td
=
f
.
text_area
:title
,
:style
=>
"width:450px; height:100px"
,
:maxlength
=>
255
-
if
@issue
.
errors
.
any?
%tr
%td
{
:colspan
=>
2
}
#error_explanation
-
@issue
.
errors
.
full_messages
.
each
do
|
msg
|
%span
=
msg
%br
%tr
%td
=
f
.
label
:assignee_id
%td
=
f
.
select
(
:assignee_id
,
@project
.
users
.
all
.
collect
{
|
p
|
[
p
.
name
,
p
.
id
]
},
{
:include_blank
=>
"Select user"
})
%tr
%tr
%td
=
f
.
label
:critical
,
"Critical"
%td
=
f
.
label
:assignee_id
%td
=
f
.
check_box
:critical
%td
=
f
.
select
(
:assignee_id
,
@project
.
users
.
all
.
collect
{
|
p
|
[
p
.
name
,
p
.
id
]
},
{
:include_blank
=>
"Select user"
})
-
unless
@issue
.
new_record?
%tr
%tr
%td
=
f
.
label
:critical
,
"Critical"
%td
=
f
.
label
:closed
%td
=
f
.
check_box
:critical
%td
=
f
.
check_box
:closed
.buttons
-
unless
@issue
.
new_record?
=
f
.
submit
'Save'
,
:class
=>
"grey-button"
%tr
%td
=
f
.
label
:closed
%td
=
f
.
check_box
:closed
=
f
.
text_area
:title
,
:style
=>
"width:718px; height:100px"
,
:maxlength
=>
255
%br
%br
.merge-tabs
=
f
.
submit
'Save'
,
:class
=>
"grey-button"
-
unless
@issue
.
new_record?
.right
.right
-
if
request
.
xhr?
=
link_to
'Remove'
,
[
@project
,
@issue
],
:confirm
=>
'Are you sure?'
,
:method
=>
:delete
,
:class
=>
"red-button"
=
link_to_function
"Back"
,
"backToIssues();"
,
:class
=>
"grey-button"
-
else
=
link_to
"Back"
,
[
@project
,
@issue
],
:class
=>
"grey-button"
spec/requests/issues_spec.rb
View file @
ff1cbbc5
...
@@ -96,7 +96,7 @@ describe "Issues" do
...
@@ -96,7 +96,7 @@ describe "Issues" do
end
end
it
"should open new issue form"
do
it
"should open new issue form"
do
page
.
should
have_content
(
"New
i
ssue"
)
page
.
should
have_content
(
"New
I
ssue"
)
end
end
describe
"fill in"
do
describe
"fill in"
do
...
...
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