Commit 20999807 authored by James Pic's avatar James Pic

Merge pull request #50 from political-memory/bugfix_link

Use Country.get_absolute_url in templates
parents 9c884e2a 95639bc9
<div class="container-fluid main-container"> <!DOCTYPE html>
<html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8" />
<link rel="icon" type="image/png" href="/static/collected/img/favicon.ico" />
<!-- Set the viewport width to device width for mobile -->
<meta name="viewport" content="width=device-width" />
<title>
Home
- The Political Memory of </title>
<link rel="stylesheet" href="/static/collected/libs/bootstrap/dist/css/bootstrap.min.css" type="text/css" /><link rel="stylesheet" href="/static/collected/libs/fontawesome/css/font-awesome.min.css" type="text/css" /><link rel="stylesheet" href="/static/collected/libs/flag-icon-css/css/flag-icon.min.css" type="text/css" /><link rel="stylesheet" href="/static/collected/CACHE/css/base.53baf9815401.css" type="text/css" />
<script type="text/javascript" src="/static/collected/libs/jquery/dist/jquery.js"></script>
<script type="text/javascript" src="/static/collected/libs/bootstrap/dist/js/bootstrap.js"></script>
</head>
<body >
<!-- -load memopol_tags cache -->
<div id='header' class='container-fluid'>
<a id='logo' href='/'>
<img src='/static/collected/images/logo.png' />
</a>
<h1>
<a id='header_banner' href='/'>
Political Memory
</a>
</h1>
<p class='organization'>
</p>
</div>
<div id='nav' class='container-fluid'>
<ul class='nav'>
<li>
<a href='/legislature/representative/'>
Representatives
</a>
</li>
<li>
<a href='/legislature/groups/country/'>
Countries
</a>
</li>
<li>
<a href='/legislature/groups/group/'>
Parties
</a>
</li>
<li>
<a href='/legislature/groups/delegation/'>
Delegations
</a>
</li>
<li>
<a href='/legislature/groups/committee/'>
Committees
</a>
</li>
<li>
<a href='/votes/dossier/'>
Votes
</a>
</li>
</ul>
</div>
<div class="container-fluid main-container">
<form action='' method='get'> <form action='' method='get'>
<label for='search'> <label for='search'>
...@@ -11,47 +84,47 @@ ...@@ -11,47 +84,47 @@
<input type='submit' value='Go' /> <input type='submit' value='Go' />
</form> </form>
<div class='pagination-block'> <div class='pagination-block'>
<nav> <nav>
<ul class='pagination pagination-sm'> <ul class='pagination pagination-sm'>
<li class='active'> <li class='active'>
<a href=''> <a href=''>
1 1
</a> </a>
</li> </li>
<li> <li>
<a href='?&page=2'> <a href='?&page=2'>
2 2
</a> </a>
</li> </li>
<li> <li>
<a href='?&page=3'> <a href='?&page=3'>
3 3
</a> </a>
</li> </li>
<li> <li>
<a aria-label='Next' href='?&page=2'> <a aria-label='Next' href='?&page=2'>
<i aria-hidden="true" class="fa fa-chevron-right"></i> <i aria-hidden="true" class="fa fa-chevron-right"></i>
...@@ -64,7 +137,7 @@ ...@@ -64,7 +137,7 @@
</a> </a>
</li> </li>
</ul> </ul>
</nav> </nav>
<div class='count'> <div class='count'>
...@@ -73,35 +146,35 @@ ...@@ -73,35 +146,35 @@
Number of displayed results : Number of displayed results :
12 12
( (
<a href='?paginate_by=12'> <a href='?paginate_by=12'>
12 12
</a> </a>
/ /
<a href='?paginate_by=24'> <a href='?paginate_by=24'>
24 24
</a> </a>
/ /
<a href='?paginate_by=48'> <a href='?paginate_by=48'>
48 48
</a> </a>
/ /
<a href='?paginate_by=96'> <a href='?paginate_by=96'>
96 96
</a> </a>
) )
<span class='grid-list-selector'> <span class='grid-list-selector'>
<a href='?display=grid'> <a href='?display=grid'>
<i class="fa fa-th"></i> <i class="fa fa-th"></i>
...@@ -113,12 +186,12 @@ ...@@ -113,12 +186,12 @@
</span> </span>
</div> </div>
</div> </div>
<table class='table'> <table class='table'>
<tr> <tr>
...@@ -139,7 +212,7 @@ ...@@ -139,7 +212,7 @@
</th> </th>
</tr> </tr>
<tr> <tr>
<td> <td>
<a href='/legislature/representative/zigmantas-balcytis/'> <a href='/legislature/representative/zigmantas-balcytis/'>
...@@ -154,8 +227,10 @@ ...@@ -154,8 +227,10 @@
</a> </a>
</td> </td>
<td> <td>
<a href='/legislature/representative/country/Lithuania/'>
Lithuania [LT] Lithuania [LT]
</a>
</td> </td>
<td> <td>
<a href='/legislature/representative/group/Group%20of%20the%20Progressive%20Alliance%20of%20Socialists%20and%20Democrats%20in%20the%20European%20Parliament/'> <a href='/legislature/representative/group/Group%20of%20the%20Progressive%20Alliance%20of%20Socialists%20and%20Democrats%20in%20the%20European%20Parliament/'>
...@@ -167,7 +242,7 @@ ...@@ -167,7 +242,7 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td>
<a href='/legislature/representative/vilija-blinkeviciute/'> <a href='/legislature/representative/vilija-blinkeviciute/'>
...@@ -182,8 +257,10 @@ ...@@ -182,8 +257,10 @@
</a> </a>
</td> </td>
<td> <td>
<a href='/legislature/representative/country/Lithuania/'>
Lithuania [LT] Lithuania [LT]
</a>
</td> </td>
<td> <td>
<a href='/legislature/representative/group/Group%20of%20the%20Progressive%20Alliance%20of%20Socialists%20and%20Democrats%20in%20the%20European%20Parliament/'> <a href='/legislature/representative/group/Group%20of%20the%20Progressive%20Alliance%20of%20Socialists%20and%20Democrats%20in%20the%20European%20Parliament/'>
...@@ -195,7 +272,7 @@ ...@@ -195,7 +272,7 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td>
<a href='/legislature/representative/elmar-brok/'> <a href='/legislature/representative/elmar-brok/'>
...@@ -210,8 +287,10 @@ ...@@ -210,8 +287,10 @@
</a> </a>
</td> </td>
<td> <td>
<a href='/legislature/representative/country/Germany/'>
Germany [DE] Germany [DE]
</a>
</td> </td>
<td> <td>
<a href='/legislature/representative/group/Group%20of%20the%20European%20People&#39;s%20Party%20(Christian%20Democrats)/'> <a href='/legislature/representative/group/Group%20of%20the%20European%20People&#39;s%20Party%20(Christian%20Democrats)/'>
...@@ -223,7 +302,7 @@ ...@@ -223,7 +302,7 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td>
<a href='/legislature/representative/cristian-silviu-busoi/'> <a href='/legislature/representative/cristian-silviu-busoi/'>
...@@ -238,8 +317,10 @@ ...@@ -238,8 +317,10 @@
</a> </a>
</td> </td>
<td> <td>
<a href='/legislature/representative/country/Romania/'>
Romania [RO] Romania [RO]
</a>
</td> </td>
<td> <td>
<a href='/legislature/representative/group/Group%20of%20the%20European%20People&#39;s%20Party%20(Christian%20Democrats)/'> <a href='/legislature/representative/group/Group%20of%20the%20European%20People&#39;s%20Party%20(Christian%20Democrats)/'>
...@@ -251,7 +332,7 @@ ...@@ -251,7 +332,7 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td>
<a href='/legislature/representative/david-casa/'> <a href='/legislature/representative/david-casa/'>
...@@ -266,8 +347,10 @@ ...@@ -266,8 +347,10 @@
</a> </a>
</td> </td>
<td> <td>
<a href='/legislature/representative/country/Malta/'>
Malta [MT] Malta [MT]
</a>
</td> </td>
<td> <td>
<a href='/legislature/representative/group/Group%20of%20the%20European%20People&#39;s%20Party%20(Christian%20Democrats)/'> <a href='/legislature/representative/group/Group%20of%20the%20European%20People&#39;s%20Party%20(Christian%20Democrats)/'>
...@@ -279,7 +362,7 @@ ...@@ -279,7 +362,7 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td>
<a href='/legislature/representative/jean-marie-cavada/'> <a href='/legislature/representative/jean-marie-cavada/'>
...@@ -294,8 +377,10 @@ ...@@ -294,8 +377,10 @@
</a> </a>
</td> </td>
<td> <td>
<a href='/legislature/representative/country/France/'>
France [FR] France [FR]
</a>
</td> </td>
<td> <td>
<a href='/legislature/representative/group/Group%20of%20the%20Alliance%20of%20Liberals%20and%20Democrats%20for%20Europe/'> <a href='/legislature/representative/group/Group%20of%20the%20Alliance%20of%20Liberals%20and%20Democrats%20for%20Europe/'>
...@@ -307,7 +392,7 @@ ...@@ -307,7 +392,7 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td>
<a href='/legislature/representative/nikolaos-chountis/'> <a href='/legislature/representative/nikolaos-chountis/'>
...@@ -322,8 +407,10 @@ ...@@ -322,8 +407,10 @@
</a> </a>
</td> </td>
<td> <td>
<a href='/legislature/representative/country/Greece/'>
Greece [GR] Greece [GR]
</a>
</td> </td>
<td> <td>
<a href='/legislature/representative/group/Confederal%20Group%20of%20the%20European%20United%20Left%20-%20Nordic%20Green%20Left/'> <a href='/legislature/representative/group/Confederal%20Group%20of%20the%20European%20United%20Left%20-%20Nordic%20Green%20Left/'>
...@@ -335,7 +422,7 @@ ...@@ -335,7 +422,7 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td>
<a href='/legislature/representative/michael-cramer/'> <a href='/legislature/representative/michael-cramer/'>
...@@ -350,8 +437,10 @@ ...@@ -350,8 +437,10 @@
</a> </a>
</td> </td>
<td> <td>
<a href='/legislature/representative/country/Germany/'>
Germany [DE] Germany [DE]
</a>
</td> </td>
<td> <td>
<a href='/legislature/representative/group/Group%20of%20the%20Greens/European%20Free%20Alliance/'> <a href='/legislature/representative/group/Group%20of%20the%20Greens/European%20Free%20Alliance/'>
...@@ -363,7 +452,7 @@ ...@@ -363,7 +452,7 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td>
<a href='/legislature/representative/michel-dantin/'> <a href='/legislature/representative/michel-dantin/'>
...@@ -378,8 +467,10 @@ ...@@ -378,8 +467,10 @@
</a> </a>
</td> </td>
<td> <td>
<a href='/legislature/representative/country/France/'>
France [FR] France [FR]
</a>
</td> </td>
<td> <td>
<a href='/legislature/representative/group/Group%20of%20the%20European%20People&#39;s%20Party%20(Christian%20Democrats)/'> <a href='/legislature/representative/group/Group%20of%20the%20European%20People&#39;s%20Party%20(Christian%20Democrats)/'>
...@@ -391,7 +482,7 @@ ...@@ -391,7 +482,7 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td>
<a href='/legislature/representative/tamas-deutsch/'> <a href='/legislature/representative/tamas-deutsch/'>
...@@ -406,8 +497,10 @@ ...@@ -406,8 +497,10 @@
</a> </a>
</td> </td>
<td> <td>
<a href='/legislature/representative/country/Hungary/'>
Hungary [HU] Hungary [HU]
</a>
</td> </td>
<td> <td>
<a href='/legislature/representative/group/Group%20of%20the%20European%20People&#39;s%20Party%20(Christian%20Democrats)/'> <a href='/legislature/representative/group/Group%20of%20the%20European%20People&#39;s%20Party%20(Christian%20Democrats)/'>
...@@ -419,7 +512,7 @@ ...@@ -419,7 +512,7 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td>
<a href='/legislature/representative/viorica-dancila/'> <a href='/legislature/representative/viorica-dancila/'>
...@@ -434,8 +527,10 @@ ...@@ -434,8 +527,10 @@
</a> </a>
</td> </td>
<td> <td>
<a href='/legislature/representative/country/Romania/'>
Romania [RO] Romania [RO]
</a>
</td> </td>
<td> <td>
<a href='/legislature/representative/group/Group%20of%20the%20Progressive%20Alliance%20of%20Socialists%20and%20Democrats%20in%20the%20European%20Parliament/'> <a href='/legislature/representative/group/Group%20of%20the%20Progressive%20Alliance%20of%20Socialists%20and%20Democrats%20in%20the%20European%20Parliament/'>
...@@ -447,7 +542,7 @@ ...@@ -447,7 +542,7 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td>
<a href='/legislature/representative/bas-eickhout/'> <a href='/legislature/representative/bas-eickhout/'>
...@@ -462,8 +557,10 @@ ...@@ -462,8 +557,10 @@
</a> </a>
</td> </td>
<td> <td>
<a href='/legislature/representative/country/Netherlands/'>
Netherlands [NL] Netherlands [NL]