Commit 2258db66c2e8ddccc1716b92f9d9a3a1cb3eff7f
1 parent
f4e7ad7a
Exists in
master
and in
4 other branches
issue can be edit from show page
Showing
3 changed files
with
11 additions
and
2 deletions
Show diff stats
app/views/issues/index.html.haml
app/views/issues/show.html.haml
... | ... | @@ -3,6 +3,10 @@ |
3 | 3 | |
4 | 4 | .span-15 |
5 | 5 | = simple_format html_escape(@issue.content) |
6 | + | |
7 | + | |
8 | + .clear | |
9 | + %br | |
6 | 10 | .issue_notes= render "notes/notes" |
7 | 11 | .span-8.right |
8 | 12 | .span-8 |
... | ... | @@ -39,5 +43,10 @@ |
39 | 43 | - else |
40 | 44 | = check_box_tag "closed", 1, @issue.closed, :disabled => true |
41 | 45 | |
46 | + | |
47 | + - if can?(current_user, :admin_issue, @issue) | |
48 | + .clear | |
49 | + = link_to 'Edit', edit_project_issue_path(@project, @issue), :class => "lbutton positive", :remote => true | |
50 | + .right= link_to 'Destroy', [@project, @issue], :confirm => 'Are you sure?', :method => :delete, :class => "lbutton delete-issue negative", :id => "destroy_issue_#{@issue.id}" | |
42 | 51 | .clear |
43 | 52 | ... | ... |
app/views/issues/update.js.haml