tweaked reshare button

This commit is contained in:
danielvincent 2010-10-08 16:19:51 -07:00
parent 6cbe4075f4
commit c5affa07e8
3 changed files with 27 additions and 7 deletions

View file

@ -11,6 +11,8 @@
$(this).parent(".reshare_pane").children(".reshare_box").fadeOut(200);
});
- unless current_user.aspects.size == current_user.aspects_with_post(post.id).size
.reshare_pane
%span.reshare_button
= link_to "Reshare", "#"
@ -19,3 +21,7 @@
- for aspect in current_user.aspects
- unless aspect.posts.include? post
%li.aspect_to_share= link_to aspect, :controller => "aspects", :action => "show", :id => aspect.id, :prefill => post.message
- else
.reshare_pane
%span.reshare_button
= link_to "Reshare", "#", :class => "inactive"

View file

@ -208,6 +208,12 @@ li.message {
li.message:hover div.info a:active, li.message:hover .time a:active {
color: #005d9c; }
.destroy_link .reshare_pane .reshare_button a.inactive {
color: #cccccc;
cursor: default; }
.destroy_link .reshare_pane .reshare_button a.inactive:hover {
text-decoration: none; }
.destroy_link .reshare_pane {
margin-left: 5px;
margin-right: 5px;

View file

@ -274,6 +274,14 @@ li.message
&:active
:color #005D9C
.destroy_link .reshare_pane .reshare_button a.inactive
:color #ccc
&:hover
:text
:decoration none
:cursor default
.destroy_link .reshare_pane
:margin
:left 5px