message in aspect if stream is empty

This commit is contained in:
danielvincent 2010-10-14 15:00:47 -07:00
parent 32a0f60a2f
commit 5722f85c85
3 changed files with 45 additions and 0 deletions

View file

@ -11,6 +11,11 @@
%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

View file

@ -753,3 +753,19 @@ ul#settings_nav {
border-bottom: 1px solid #cccccc; }
#left_pane ul li a:hover:after {
content: " ►"; }
.empty_message {
margin-top: 12px;
text-align: center;
color: #777777;
margin-left: 70px;
padding: 1em;
padding-top: 0;
width: 80%;
border: 2px dashed #777777;
border-radius: 5px; }
.empty_message h3 {
color: #777777; }
.empty_message .null_arrow {
font-size: 80px;
display: inline-block; }

View file

@ -980,3 +980,27 @@ ul#settings_nav
&:hover
&:after
:content ""
.empty_message
:margin
:top 12px
:text
:align center
:color #777
h3
:color #777
:margin
:left 70px
:padding 1em
:top 0
:width 80%
:border 2px dashed #777
:border-radius 5px
.null_arrow
:font
:size 80px
:display inline-block