Return to Agent Events after Event show (#1555)

This commit is contained in:
Enfop 2016-06-23 05:43:04 +02:00 committed by Andrew Cantino
parent 9b579617f5
commit d26015c62b
2 changed files with 2 additions and 2 deletions

View file

@ -32,7 +32,7 @@
<td class='payload'><%= truncate event.payload.to_json, :length => 90, :omission => "" %></td>
<td>
<div class="btn-group btn-group-xs">
<%= link_to 'Show', event_path(event), class: "btn btn-default" %>
<%= link_to 'Show', event_path(event, return: request.fullpath), class: "btn btn-default" %>
<%= link_to 'Re-emit', reemit_event_path(event), method: :post, data: { confirm: 'Are you sure you want to duplicate this event and emit the new one now?' }, class: "btn btn-default" %>
<%= link_to 'Delete', event_path(event), method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-default" %>
</div>

View file

@ -49,7 +49,7 @@
<br />
<div class="btn-group">
<%= link_to icon_tag('glyphicon-chevron-left') + ' Back'.html_safe, events_path, class: "btn btn-default" %>
<%= link_to icon_tag('glyphicon-chevron-left') + ' Back'.html_safe, filtered_agent_return_link || events_path, class: "btn btn-default" %>
</div>
</div>
</div>