<% # Partial locals: `content` to ask a question about, and `field` for the field being questioned include_quick_reference = defined?(include_quick_reference) && !!include_quick_reference %> <% if defined?(field) && field.present? %> <% if include_quick_reference %> <%= render partial: 'prompts/smart_sidebar', locals: { content: content } %> <% end %> <% elsif defined?(show_empty_prompt) && show_empty_prompt %>
Hey! It looks like I don't have any more prompts for you right now. I'll get to work coming up with some!

In the meantime, I'll get a big boost of prompts if you create more pages I can think about! You can also check back later and I might have more prompts for your current pages.

<% new_content_types = (current_user.createable_content_types - [Universe]) %> <% new_content_types.each do |content_type| %> <%= link_to new_polymorphic_path(content_type), class: "btn #{content_type.color} black-text", style: 'margin: 14px;' do %> create <% if current_user.send(content_type.name.downcase.pluralize).any? %> another <% else %> <%= %w(a e i o).include?(content_type.name.downcase[0]) ? 'an' : 'a' %> <% end %> <%= content_type.name.downcase %> <% end %> <% end %>
<%= image_tag 'tristan/small.webp', class: 'tooltipped tristan', data: { position: 'right', enterDelay: '500', tooltip: "Hey, I'm Tristan! I'm here to help you around the site!" } %>
<% end %>