mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
fix universe dropdown + recent content
This commit is contained in:
parent
833199dfc6
commit
4d86a7e43a
@ -26,6 +26,26 @@
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<ul id="recent-content-dropdown" class="dropdown-content">
|
||||
<% if user_signed_in? %>
|
||||
<% current_user.recent_content_list.each do |content| %>
|
||||
<% content_class = content.class %>
|
||||
<li>
|
||||
<%= link_to main_app.polymorphic_path(content), class: "#{content_class.color}-text" do %>
|
||||
<i class="material-icons left"><%= content_class.icon %></i>
|
||||
<%= content.name %>
|
||||
<% end %>
|
||||
</li>
|
||||
<% end %>
|
||||
<% if current_user.content_count > 0 %>
|
||||
<li class="divider"></li>
|
||||
<li>
|
||||
<%= link_to 'More...', main_app.recent_content_path, class: 'blue-text' %>
|
||||
</li>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</ul>
|
||||
|
||||
<div id="search-modal" class="modal">
|
||||
<div class="modal-content">
|
||||
<h4>Your handy pagefinder</h4>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user