diff options
author | Azul <azul@leap.se> | 2014-05-20 12:30:55 +0200 |
---|---|---|
committer | Azul <azul@leap.se> | 2014-05-26 12:59:26 +0200 |
commit | 467dd712a19d48fc653cfc0e58201e6657d2c1f9 (patch) | |
tree | 44a44fec523843652d1c0bc0ba410f6e7710b3d7 /engines/support/app/views/tickets/_comments.html.haml | |
parent | 7638970e233eaebc48abd499c37c274b48c97a96 (diff) |
split up and refactor TicketController#update
close and open actions for plain opening and closing the tickets
respond_with so fields are not cleared on invalid update
the custom actions are not strictly restful. But adding a subresource felt like too much overhead and is conceptually hard to grasp (so we destroy the openess of the ticket to close it?).
Diffstat (limited to 'engines/support/app/views/tickets/_comments.html.haml')
-rw-r--r-- | engines/support/app/views/tickets/_comments.html.haml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/support/app/views/tickets/_comments.html.haml b/engines/support/app/views/tickets/_comments.html.haml new file mode 100644 index 0000000..0a3b345 --- /dev/null +++ b/engines/support/app/views/tickets/_comments.html.haml @@ -0,0 +1,8 @@ +%table.table.table-striped.table-bordered + %tbody + = render :partial => 'tickets/comment', :collection => @ticket.comments + %tr + %td.user + = current_user.login || t(:anonymous) + %td.comment + = render 'tickets/new_comment_form' |