Skip to content
Extraits de code Groupes Projets
Valider c5affa07 rédigé par danielvincent's avatar danielvincent
Parcourir les fichiers

tweaked reshare button

parent 6cbe4075
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -11,11 +11,17 @@ ...@@ -11,11 +11,17 @@
$(this).parent(".reshare_pane").children(".reshare_box").fadeOut(200); $(this).parent(".reshare_pane").children(".reshare_box").fadeOut(200);
}); });
.reshare_pane
%span.reshare_button
= link_to "Reshare", "#"
%ul.reshare_box - unless current_user.aspects.size == current_user.aspects_with_post(post.id).size
- for aspect in current_user.aspects .reshare_pane
- unless aspect.posts.include? post %span.reshare_button
%li.aspect_to_share= link_to aspect, :controller => "aspects", :action => "show", :id => aspect.id, :prefill => post.message = link_to "Reshare", "#"
%ul.reshare_box
- 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"
...@@ -208,6 +208,12 @@ li.message { ...@@ -208,6 +208,12 @@ li.message {
li.message:hover div.info a:active, li.message:hover .time a:active { li.message:hover div.info a:active, li.message:hover .time a:active {
color: #005d9c; } 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 { .destroy_link .reshare_pane {
margin-left: 5px; margin-left: 5px;
margin-right: 5px; margin-right: 5px;
......
...@@ -274,6 +274,14 @@ li.message ...@@ -274,6 +274,14 @@ li.message
&:active &:active
:color #005D9C :color #005D9C
.destroy_link .reshare_pane .reshare_button a.inactive
:color #ccc
&:hover
:text
:decoration none
:cursor default
.destroy_link .reshare_pane .destroy_link .reshare_pane
:margin :margin
:left 5px :left 5px
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter