From b784d373cabc274c394f00d32e8bda76c6f2d0b6 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Sun, 26 Mar 2023 15:13:34 -0700 Subject: [PATCH] empty content index for basil cindex --- app/views/basil/index.html.erb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/app/views/basil/index.html.erb b/app/views/basil/index.html.erb index 3ec3ac72..9bb19693 100644 --- a/app/views/basil/index.html.erb +++ b/app/views/basil/index.html.erb @@ -59,6 +59,20 @@ <% end %> <% end %> + + <% if @content.empty? %> +
+ You haven't created any <%= @content_type %> pages yet. +

+ + <%= link_to new_polymorphic_path(@content_type.downcase), class: '' do %> +
+ add + Create <%= @content_type %> +
+ <% end %> +
+ <% end %>