Commit 72c8fe93 authored by Nicolas Joyard's avatar Nicolas Joyard
Browse files

Use memopol tags; add country flag to country page

parent 7343014f
......@@ -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)
......
- load memopol_tags
- load representatives_tags
- load representatives_recommendations_tags
- load humanize
......
- 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
......
......@@ -2,8 +2,6 @@
- load humanize
- load memopol_tags
- load representatives_tags
- load representatives_votes_tags
- load representatives_recommendations_tags
- block head
......
- extends 'representatives/representative_list.html'
- load memopol_tags
- load representatives_tags
- load representatives_recommendations_tags
- block list
......
......@@ -2,7 +2,6 @@
- load i18n
- load memopol_tags
- load representatives_tags
- load representatives_recommendations_tags
- block content
......
- extends "base.html"
- load i18n
- load representatives_votes_tags
- load memopol_tags
- block content
......
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