empty content index for basil cindex

This commit is contained in:
Andrew Brown 2023-03-26 15:13:34 -07:00
parent 55e3e5ea36
commit b784d373ca

View File

@ -59,6 +59,20 @@
</div>
<% end %>
<% end %>
<% if @content.empty? %>
<div class="center">
<strong>You haven't created any <%= @content_type %> pages yet.</strong>
<br /><br />
<%= link_to new_polymorphic_path(@content_type.downcase), class: '' do %>
<div class="hoverable card-panel <%= @content_type.constantize.color %> white-text" style="width: 33%; margin: 0 auto">
<i class="material-icons left">add</i>
Create <%= @content_type %>
</div>
<% end %>
<div>
<% end %>
</div>
</div>
</div>