Skip to content
Extraits de code Groupes Projets
Valider 1f7ddd61 rédigé par Nicolas Joyard's avatar Nicolas Joyard
Parcourir les fichiers

Display inactive rep picture in grayscale

parent 7cd9b63b
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -65,4 +65,17 @@
text-indent: 10px;
}
}
}
.representative_item.inactive,
.representative.inactive {
.photo img {
-webkit-filter: greyscale(1);
-moz-filter: grayscale(1);
-ms-filter: grayscale(1);
-o-filter: grayscale(1);
filter: grayscale(1);
opacity: 0.5;
}
}
\ No newline at end of file
......@@ -3,7 +3,7 @@
- load representatives_recommendations_tags
- load humanize
.representative
.representative{'class': '{{ representative.active|yesno:"active,inactive" }}' }
%h1.name<
={representative.full_name}
......
......@@ -8,7 +8,7 @@
.representative_grid
- for representative in object_list
.representative_item
.representative_item{'class': '{{ representative.active|yesno:"active,inactive" }}'}
%p.photo
%a{'href': "{% url 'representative-detail' representative.slug %}"}
%img{'src': '={representative.photo}', 'width': '80'}/
......
......@@ -38,8 +38,8 @@
- trans 'Score'
- for representative in object_list
%tr
%td
%tr.representative_item{'class': '{{ representative.active|yesno:"active,inactive" }}'}
%td.photo
%a{'href': "{% url 'representative-detail' representative.slug %}"}
%img{'src': '={representative.photo}', 'width': '80'}/
......
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