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
72c8fe93
Commit
72c8fe93
authored
Jun 11, 2016
by
Nicolas Joyard
Browse files
Use memopol tags; add country flag to country page
parent
7343014f
Changes
7
Hide whitespace changes
Inline
Side-by-side
memopol/templatetags/memopol_tags.py
View file @
72c8fe93
...
...
@@ -21,10 +21,6 @@ def fix_url(url):
return
re
.
sub
(
'^(https?://)?'
,
'https://'
,
url
.
strip
())
def
cssify
(
string
):
return
re
.
sub
(
'[^a-z_-]'
,
''
,
string
.
lower
())
@
register
.
filter
def
twitter_link
(
url
):
furl
=
fix_url
(
url
)
...
...
templates/representatives/_representative_block.haml
View file @
72c8fe93
-
load
memopol_tags
-
load
representatives_tags
-
load
representatives_recommendations_tags
-
load
humanize
...
...
templates/representatives/group_list.haml
View file @
72c8fe93
-
extends
'base.html'
-
load
memopol_tags
-
load
representatives_tags
-
block
content
...
...
@@ -25,6 +24,8 @@
%a
{
'href'
:
"{% group_url group %}"
}=
-
if
group
.
kind
==
'chamber'
=
group
|
chamber_icon
-
elif
group
.
kind
==
'country'
=
group
|
country_flag
-
elif
group
.
kind
==
'group'
=
group
|
group_long_icon
-
else
...
...
templates/representatives/representative_detail.haml
View file @
72c8fe93
...
...
@@ -2,8 +2,6 @@
-
load
humanize
-
load
memopol_tags
-
load
representatives_tags
-
load
representatives_votes_tags
-
load
representatives_recommendations_tags
-
block
head
...
...
templates/representatives/representative_grid.haml
View file @
72c8fe93
-
extends
'representatives/representative_list.html'
-
load
memopol_tags
-
load
representatives_tags
-
load
representatives_recommendations_tags
-
block
list
...
...
templates/representatives/representative_list.haml
View file @
72c8fe93
...
...
@@ -2,7 +2,6 @@
-
load
i18n
-
load
memopol_tags
-
load
representatives_tags
-
load
representatives_recommendations_tags
-
block
content
...
...
templates/representatives_votes/dossier_detail.haml
View file @
72c8fe93
-
extends
"base.html"
-
load
i18n
-
load
representatives_votes
_tags
-
load
memopol
_tags
-
block
content
...
...
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