Actions menu

Thiago Talma 9 lat temu
rodzic
commit
75d6d5baaa
1 zmienionych plików z 9 dodań i 1 usunięć
  1. 9 1
      app/views/events/show.html.erb

+ 9 - 1
app/views/events/show.html.erb

@@ -2,7 +2,15 @@
2 2
   <div class='row'>
3 3
     <div class='col-md-12'>
4 4
       <div class="page-header">
5
-        <h2>Event from <%= @event.agent.name %></h2>
5
+        <h2>
6
+          Event from <%= @event.agent.name %>
7
+          <div class="btn-group">
8
+            <button type="button" class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown">
9
+              <span class="caret"></span>
10
+            </button>
11
+            <%= render 'agents/action_menu', agent: @event.agent, return_to: (defined?(return_to) && return_to) || request.path %>
12
+          </div>
13
+        </h2>
6 14
       </div>
7 15
 
8 16
       <p>