From 8daf2d0fd518d6a65f9399646f2916a064399b51 Mon Sep 17 00:00:00 2001 From: danielvincent <danielgrippi@gmail.com> Date: Thu, 14 Oct 2010 15:23:15 -0700 Subject: [PATCH] add none message to aspect#index --- app/views/aspects/index.html.haml | 6 ++++++ app/views/aspects/show.html.haml | 1 + 2 files changed, 7 insertions(+) diff --git a/app/views/aspects/index.html.haml b/app/views/aspects/index.html.haml index 24860b6680..25ba89081b 100644 --- a/app/views/aspects/index.html.haml +++ b/app/views/aspects/index.html.haml @@ -11,6 +11,12 @@ %ul#stream - for post in @posts = render type_partial(post), :post => post unless post.class == Album + +- if @posts.size == 0 + #empty_message + .null_arrow ⇧ + %h3 Nobody has said anything yet. Get the conversation started! + #pagination = will_paginate @posts diff --git a/app/views/aspects/show.html.haml b/app/views/aspects/show.html.haml index e50c53602a..441508e8f8 100644 --- a/app/views/aspects/show.html.haml +++ b/app/views/aspects/show.html.haml @@ -11,6 +11,7 @@ %ul#stream - for post in @posts = render type_partial(post), :post => post unless post.class == Album + - if @posts.size == 0 #empty_message .null_arrow ⇧ -- GitLab