diff --git a/app/views/memos/show.html.erb b/app/views/memos/show.html.erb index 05f81f89..db1f33c4 100644 --- a/app/views/memos/show.html.erb +++ b/app/views/memos/show.html.erb @@ -12,7 +12,13 @@ :method => 'get', :title => l(:button_quote) )if !@memo.locked? && User.current.logged? %> --> - <%= link_to(l(:button_quote))if !@memo.locked? && User.current.logged? %> + <%= link_to( + l(:button_quote), + {:action => 'quote', :id => @memo}, + :remote => true, + :method => 'get', + :title => l(:button_quote) + )if !@memo.locked? && User.current.logged? %> <%= link_to( image_tag('edit.png'), @@ -20,13 +26,22 @@ :method => 'get', :title => l(:button_edit) ) if @memo.editable_by?(User.current) %> - <%= link_to( + + <%= link_to( + l(:button_delete), + {:action => 'destroy', :id => @memo}, + :method => :delete, + :data => {:confirm => l(:text_are_you_sure)}, + :title => l(:button_delete) ) if @memo.destroyable_by?(User.current) %> + +
<%= label_tag l(:field_subject) %>: <%=h @memo.subject %>
@@ -59,20 +74,34 @@ :method => 'get', :title => l(:button_quote) )if !@memo.locked? && User.current.logged? %> --> - <%= link_to(l(:button_quote))if !@memo.locked? && User.current.logged? %> + <%= link_to( + l(:button_quote), + {:action => 'quote', :id => reply}, + :remote => true, + :method => 'get', + :title => l(:button_quote) + )if !@memo.locked? && User.current.logged? %> <%= link_to( image_tag('edit.png'), {:action => 'edit', :id => reply}, :title => l(:button_edit) ) if reply.editable_by?(User.current) %> - <%= link_to( + + <%= link_to( + l(:button_delete), + {:action => 'destroy', :id => reply}, + :method => :delete, + :data => {:confirm => l(:text_are_you_sure)}, + :title => l(:button_delete) + ) if reply.destroyable_by?(User.current) %> +