Skip to content

Commit

Permalink
Move header partial in test app from shared to layout
Browse files Browse the repository at this point in the history
  • Loading branch information
simukappu committed Aug 7, 2016
1 parent 1e75124 commit 6d3018f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
<div>
<%= link_to open_all_notifications_path_for(@target), method: :post, remote: true do %>
<%= link_to open_all_notifications_path_for(@target), method: :post, remote: true,
class: "dropdown-toggle", data: {toggle: "dropdown"} do %>
<div id="notification_count"><%= @target.unopened_notification_count %></div>
<% end %>

<div id="notification_index">
<%= yield :notification_index %>
</div>
<!-- Make this dropdown -->
<ul class="dropdown-menu">
<div id="notification_index">
<p>Notifications</p>
<%= yield :notification_index %>
</div>
</ul>
<%# end %>
</div>
2 changes: 1 addition & 1 deletion spec/rails_app/app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<%= csrf_meta_tags %>
</head>
<body>
<%= render 'shared/header' %>
<%= render 'layouts/header' %>
<%= yield %>
</body>
</html>

0 comments on commit 6d3018f

Please sign in to comment.