Skip to content
This repository has been archived by the owner on Aug 3, 2022. It is now read-only.

Commit

Permalink
[#1085] Fix place.slug formatting for links to previous Index
Browse files Browse the repository at this point in the history
Should be lowercase, and underscores replaced by hyphens.
  • Loading branch information
brew committed May 8, 2017
1 parent d9c1929 commit f378d84
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions census/views/entry.html
Expand Up @@ -41,9 +41,9 @@ <h3>
<div class="history">
<h6>{{ gettext("See other years") }}</h6>
<ul>
<li><a href="http://2015.index.okfn.org/place/{{ place.slug }}/{{ dataset.id }}/2013/" title="2013">2013</a></li>
<li><a href="http://2015.index.okfn.org/place/{{ place.slug }}/{{ dataset.id }}/2014/" title="2014">2014</a></li>
<li><a href="http://2015.index.okfn.org/place/{{ place.slug }}/{{ dataset.id }}" title="2015">2015</a></li>
<li><a href="http://2015.index.okfn.org/place/{{ place.slug | lower | replace('_', '-') }}/{{ dataset.id }}/2013/" title="2013">2013</a></li>
<li><a href="http://2015.index.okfn.org/place/{{ place.slug | lower | replace('_', '-') }}/{{ dataset.id }}/2014/" title="2014">2014</a></li>
<li><a href="http://2015.index.okfn.org/place/{{ place.slug | lower | replace('_', '-') }}/{{ dataset.id }}" title="2015">2015</a></li>
</ul>
<p><small>Note: The methodology used in the Global Open Data Index has changed over time; significantly so between 2015 and 2016. For this reason, the results are not directly comparable over time.</small></p>
</div>
Expand Down
6 changes: 3 additions & 3 deletions census/views/place.html
Expand Up @@ -63,9 +63,9 @@ <h3>{{ gettext("Breakdown") }}</h3>
<div class="history">
<h6>{{ gettext("See other years") }}</h6>
<ul>
<li><a href="http://2015.index.okfn.org/place/{{ place.slug }}/2013/" title="2013">2013</a></li>
<li><a href="http://2015.index.okfn.org/place/{{ place.slug }}/2014/" title="2014">2014</a></li>
<li><a href="http://2015.index.okfn.org/place/{{ place.slug }}/" title="2015">2015</a></li>
<li><a href="http://2015.index.okfn.org/place/{{ place.slug | lower | replace('_', '-') }}/2013/" title="2013">2013</a></li>
<li><a href="http://2015.index.okfn.org/place/{{ place.slug | lower | replace('_', '-') }}/2014/" title="2014">2014</a></li>
<li><a href="http://2015.index.okfn.org/place/{{ place.slug | lower | replace('_', '-') }}/" title="2015">2015</a></li>
</ul>
<p>
<small>Note: The methodology used in the Global Open Data Index has changed over time; significantly so between 2015 and 2016. For this reason, the results are not directly comparable over time.</small>
Expand Down

0 comments on commit f378d84

Please sign in to comment.