Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Political Memory
memopol
Commits
1f7ddd61
Commit
1f7ddd61
authored
Jun 09, 2016
by
Nicolas Joyard
Browse files
Display inactive rep picture in grayscale
parent
7cd9b63b
Changes
4
Hide whitespace changes
Inline
Side-by-side
static/scss/legislature.scss
View file @
1f7ddd61
...
...
@@ -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
templates/representatives/_representative_block.haml
View file @
1f7ddd61
...
...
@@ -3,7 +3,7 @@
-
load
representatives_recommendations_tags
-
load
humanize
.representative
.representative
{
'class'
:
'
{{
representative
.
active
|
yesno
:"active,inactive"
}}
'
}
%h1
.name
<
={
representative
.
full_name
}
...
...
templates/representatives/representative_grid.haml
View file @
1f7ddd61
...
...
@@ -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
'
}
/
...
...
templates/representatives/representative_list.haml
View file @
1f7ddd61
...
...
@@ -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
'
}
/
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment