<% content_list.each.with_index do |content, i| %>
<% if current_user.can_update?(content) %> <%= link_to edit_polymorphic_path(content), class: 'green-text right', target: content.is_a?(Document) ? '_new' : '_self', style: 'margin-right: 0' do %> Edit <% end %> <% end %> <% if current_user.can_read?(content) %> <%= link_to polymorphic_path(content), class: 'blue-text text-lighten-1' do %> View <% end %> <% end %>
<% end %> <% if local_assigns.fetch(:show_new_button, true) %> <% if current_user.can_create?(content_type) %>
<%= link_to new_polymorphic_path(content_type), class: 'white-text' do %>

add

New
<%= content_type.name %>
<% end %>
<% else %>

<%= content_type.icon %>

An active <%= link_to 'Notebook.ai Premium', subscription_path, class: 'blue-text text-darken-2' %> subscription is required to create additional <%= content_type.name.downcase %> pages, but pages you've already created will always be available here.

<% end %> <% end %> <% if local_assigns.fetch(:show_template_editor_form, false) %>
<%= link_to attribute_customization_path(content_type: content_type.name.downcase), class: 'white-text' do %>

<%= content_type.icon %>

Customize
template
<% end %>
<% end %>