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): ...@@ -21,10 +21,6 @@ def fix_url(url):
return re.sub('^(https?://)?', 'https://', url.strip()) return re.sub('^(https?://)?', 'https://', url.strip())
def cssify(string):
return re.sub('[^a-z_-]', '', string.lower())
@register.filter @register.filter
def twitter_link(url): def twitter_link(url):
furl = fix_url(url) furl = fix_url(url)
......
- load memopol_tags - load memopol_tags
- load representatives_tags
- load representatives_recommendations_tags - load representatives_recommendations_tags
- load humanize - load humanize
......
- extends 'base.html' - extends 'base.html'
- load memopol_tags - load memopol_tags
- load representatives_tags
- block content - block content
...@@ -25,6 +24,8 @@ ...@@ -25,6 +24,8 @@
%a{'href': "{% group_url group %}"}= %a{'href': "{% group_url group %}"}=
- if group.kind == 'chamber' - if group.kind == 'chamber'
= group|chamber_icon = group|chamber_icon
- elif group.kind == 'country'
= group|country_flag
- elif group.kind == 'group' - elif group.kind == 'group'
= group|group_long_icon = group|group_long_icon
- else - else
......
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
- load humanize - load humanize
- load memopol_tags - load memopol_tags
- load representatives_tags
- load representatives_votes_tags
- load representatives_recommendations_tags - load representatives_recommendations_tags
- block head - block head
......
- extends 'representatives/representative_list.html' - extends 'representatives/representative_list.html'
- load memopol_tags - load memopol_tags
- load representatives_tags
- load representatives_recommendations_tags - load representatives_recommendations_tags
- block list - block list
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
- load i18n - load i18n
- load memopol_tags - load memopol_tags
- load representatives_tags
- load representatives_recommendations_tags - load representatives_recommendations_tags
- block content - block content
......
- extends "base.html" - extends "base.html"
- load i18n - load i18n
- load representatives_votes_tags - load memopol_tags
- block content - block content
......
Supports Markdown
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