From fb0988d27ab3dac5ebd8efe9b9af7aeaa0df3d3c Mon Sep 17 00:00:00 2001 From: Justin French Date: Wed, 29 Jul 2009 13:25:01 +1000 Subject: [PATCH] some alternate text when the dashboard lists are empty --- app/views/admin/dashboard/show.html.erb | 76 ++++++++++++++----------- 1 file changed, 42 insertions(+), 34 deletions(-) diff --git a/app/views/admin/dashboard/show.html.erb b/app/views/admin/dashboard/show.html.erb index c7a99ca71..c51b9b9d0 100644 --- a/app/views/admin/dashboard/show.html.erb +++ b/app/views/admin/dashboard/show.html.erb @@ -11,45 +11,53 @@

Latest Posts

- +<% if @posts.any? -%> + +<% else -%> +

You haven't written anything yet!

+<% end -%>

Latest Comments

- + <% end -%> + + <% end -%> + +<% else -%> +

You haven't received any comments yet!

+<% end -%>