-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move header partial in test app from shared to layout
- Loading branch information
Showing
3 changed files
with
11 additions
and
5 deletions.
There are no files selected for viewing
14 changes: 10 additions & 4 deletions
14
app/views/activity_notification/notifications/default/_index.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters