Commit 1f7ddd61 authored by Nicolas Joyard's avatar Nicolas Joyard
Browse files

Display inactive rep picture in grayscale

parent 7cd9b63b
......@@ -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'}/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment