highlight public posts in the stream

This commit is contained in:
danielvincent 2010-12-08 18:59:02 -08:00
parent cdd225c076
commit aa628c090d
3 changed files with 23 additions and 2 deletions

View file

@ -2,8 +2,13 @@
-# licensed under the Affero General Public License version 3 or later. See -# licensed under the Affero General Public License version 3 or later. See
-# the COPYRIGHT file. -# the COPYRIGHT file.
%li.message{:data=>{:guid=>post.id}} %li.message{:data=>{:guid=>post.id}, :class => ('public' if post.public?)}
=person_image_link(person) =person_image_link(person)
.public_badge
- if post.public?
= image_tag 'icons/globe.png'
.content .content
.from .from
%h4 %h4

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

View file

@ -545,7 +545,7 @@ ul.comments
:top 1em :top 1em
:padding 0 :padding 0
:background :background
:color rgba(10,81,109,0.05) :color #F0F4F5
textarea textarea
:width 100% :width 100%
@ -1959,3 +1959,19 @@ h3,h4
#edit_aspect_trigger #edit_aspect_trigger
:font :font
:size 12px :size 12px
.stream
.public_badge
:position absolute
:top 60px
:left 25px
.message.public
:background
:color #FEFFF0
:background -webkit-gradient(linear, 0% 0%, 0% 100%, from(#FFFFF7), to(#FEFFF0))
:background -moz-linear-gradient(0% 100% 90deg,#FFFFF7, #FEFFF0)
&:hover
:background #FEFFE3