Menu actions on more screens
@@ -0,0 +1,7 @@
+
+<div class="btn-group">
+ <button type="button" class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown">
+ <span class="caret"></span>
+ </button>
+ <%= render 'agents/action_menu', agent: agent, return_to: (defined?(return_to) && return_to) || request.path %>
+</div>
@@ -3,7 +3,11 @@
<div class='col-md-12'>
<div class="page-header">
<h2>
- Your Events <%= @agent && "from #{@agent.name}" %>
+ Your Events
+ <% if @agent %>
+ from <%= @agent.name %>
+ <%= render 'agents/mini_action_menu', agent: @agent, return_to: request.path %>
+ <% end %>
</h2>
</div>
@@ -2,7 +2,10 @@
<div class='row'>
- <h2>Event from <%= @event.agent.name %></h2>
+ <h2>
+ Event from <%= @event.agent.name %>
+ <%= render 'agents/mini_action_menu', agent: @event.agent, return_to: event_path(@event) %>
+ </h2>
<p>