-
<%= link_to main_app.root_path, class: 'logo-container white-text' do %>
dashboard
Notebook.ai
<% end %>
-
-
<% @current_user_content.fetch('Universe', []).sort_by(&:name).each do |universe| %>
-
<%= link_to "?universe=#{universe.id}", class: 'waves-effect' do %>
<%= Universe.icon %>
<%= truncate(universe.name, length: 26) %>
<% end %>
<% end %>
-
<%= link_to "?universe=all", class: 'waves-effect white-text' do %>
<%= Universe.icon %>
All universes
<% end %>
-
<%
@activated_content_types.each do |content_type|
%>
<% content_type_klass = content_class_from_name(content_type) %>
-
<%#
todo define missing colors using the "Custom colors" section article
https://materializecss.com/waves.html#!
%>
<%= link_to main_app.polymorphic_path(content_type_klass), class: "waves-effect waves-#{content_type_klass.color.split(' ').last}" do %>
<%= content_type_klass.icon %>
<%= content_type.pluralize %>
<%= @current_user_content.fetch(content_type, []).count %>
<%#
pluralized_name = content_type.downcase.pluralize
if content_type_klass != Universe && @universe_scope
@universe_scope.send(pluralized_name).count
else
(
@current_user_content.fetch(content_type, []) +
current_user.send("contributable_#{pluralized_name}") +
(content_type_klass == Universe ? [] : content_type_klass.where(universe_id: current_user.universes.pluck(:id)))
).uniq.count
end
%>
<% end %>
<% end %>
-
<%= link_to main_app.customization_content_types_path, class: 'waves-effect' do %>
add
Add more...
<% end %>
-
-
<%= link_to main_app.documents_path, class: 'waves-effect' do %>
<%= Document.icon %>
Documents
<%= @current_user_content.fetch('Document', []).count %>
<% end %>
-
<%= link_to main_app.timelines_path, class: 'waves-effect' do %>
<%= Timeline.icon %>
Timelines
<%= @current_user_content.fetch('Timeline', []).count %>
<% end %>
-
<%= link_to main_app.prompts_path, class: 'waves-effect' do %>
lightbulb_outline
Prompts
<% end %>
<% if current_user.community_features_enabled? %>
<% end %>
-
-
<%= link_to main_app.edit_user_registration_path, class: 'waves-effect' do %>
settings
Settings
<% end %>
-
<%= link_to main_app.subscription_path, class: 'waves-effect' do %>
credit_card
Billing
<%= current_user.on_premium_plan? ? 'Premium' : 'Starter' %>
<% end %>
-
<%= link_to main_app.data_vault_path, class: 'waves-effect' do %>
lock
Data vault
<% end %>
-
<%= link_to main_app.help_center_path, class: 'waves-effect' do %>
help
Help center
<% end %>
-
<%= link_to main_app.destroy_user_session_path, class: 'waves-effect' do %>
power_settings_new
Sign out
<% end %>