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
Léo-Paul Géneau
gitlab-ce
Commits
2258db66
Commit
2258db66
authored
Oct 27, 2011
by
gitlabhq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
issue can be edit from show page
parent
f4e7ad7a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
app/views/issues/index.html.haml
app/views/issues/index.html.haml
+1
-1
app/views/issues/show.html.haml
app/views/issues/show.html.haml
+9
-0
app/views/issues/update.js.haml
app/views/issues/update.js.haml
+1
-1
No files found.
app/views/issues/index.html.haml
View file @
2258db66
...
...
@@ -45,7 +45,7 @@
});
$
(
'
.delete-issue
'
).
live
(
'
ajax:success
'
,
function
()
{
$
(
this
).
closest
(
'
tr
'
).
fadeOut
();
});
$
(
this
).
closest
(
'
tr
'
).
fadeOut
();
updatePage
();
});
function
setSortable
(){
$
(
'
#issues-table>tbody
'
).
sortable
({
...
...
app/views/issues/show.html.haml
View file @
2258db66
...
...
@@ -3,6 +3,10 @@
.span-15
=
simple_format
html_escape
(
@issue
.
content
)
.clear
%br
.issue_notes
=
render
"notes/notes"
.span-8.right
.span-8
...
...
@@ -39,5 +43,10 @@
-
else
=
check_box_tag
"closed"
,
1
,
@issue
.
closed
,
:disabled
=>
true
-
if
can?
(
current_user
,
:admin_issue
,
@issue
)
.clear
=
link_to
'Edit'
,
edit_project_issue_path
(
@project
,
@issue
),
:class
=>
"lbutton positive"
,
:remote
=>
true
.right
=
link_to
'Destroy'
,
[
@project
,
@issue
],
:confirm
=>
'Are you sure?'
,
:method
=>
:delete
,
:class
=>
"lbutton delete-issue negative"
,
:id
=>
"destroy_issue_
#{
@issue
.
id
}
"
.clear
app/views/issues/update.js.haml
View file @
2258db66
...
...
@@ -6,7 +6,7 @@
-
if
@issue
.
valid?
:plain
$("#edit_issue_dialog").dialog("close");
$.ajax({type: "GET", url: location.href, dataType: "script"}
);
updatePage(
);
-
else
:plain
$("#edit_issue_dialog").empty();
...
...
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