This repository has been archived by the owner on Aug 3, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 94
/
place.html
80 lines (74 loc) · 3.63 KB
/
place.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{% extends "page.html" %}
{% block title %}{{ place.name }}{% endblock %}
{% block breadcrumb %}
<div class="breadcrumb-wrapper">
<ol class="breadcrumb container">
<li><a href="/">{{ gettext("Home") }}</a></li>
{% if is_index %}
<li><a href="/place">{{ gettext("Places") }}</a></li>
{% endif %}
<li class="active">{{ place.name }}</li>
</ol>
</div>
{% endblock breadcrumb %}
{% block content %}
<header class="place-intro">
<div class="container">
<h1>{{ place.name }}</h1>
<div class="share">
{% include 'includes/share_buttons.html' %}
</div>
<div class="statistics">
<table>
<tr data-rank="{{ place.rank }}" data-score="80" data-place="{{ place.id }}" data-name="{{ place.name }}">
{% if is_index %}
<td class="rank" data-rank="{{ place.rank }}">
<div>{{ format(gettext("Ranked #%(rank)s against other places in the Index"), {rank: place.rank}) }}</div>
</td>
{% endif %}
{% for dataset in datasets %}
{% set entry = entries|find({'dataset': dataset.id, 'place': place.id}) %}
<td class="status">
<ul class="availability availability-comparative">
{% for question in questions %}
{% if entry %}
{% set answer = entry.getAnswerValueForQuestion(question) %}
{% set pass = 'yes' if question.pass(answer) else 'no' %}
{% endif %}
<li class="{{ pass }}" data-content="{{ pass }}">
{% endfor %}
</ul>
</td>
{% endfor %}
<td class="open place-openness" data-score="{{ stats.openDataPercent }}" style="color: white;">
<span>{{ stats.openDataPercent }}%</span> <small data-container="body" data-toggle="popover" data-placement="top" data-content='{{ gettext("The percentage of datasets that are fully open, as defined by the [Open Definition](http://opendefinition.org/).")|marked }}' data-original-title="{{ gettext('What does this mean?') }}">{{ gettext('Open') }}</small>
</td>
<td class="score place-openness" data-score="{{ place.computedRelativeScore }}" style="color: white;">
<span>{{ place.computedRelativeScore }}%</span> <small data-container="body" data-toggle="popover" data-placement="top" data-content='{{ gettext("Ranking score, based on weighted questions, displayed as a percentage of the maximum possible score.") }}' data-original-title="{{ gettext('What does this mean?') }}">{{ gettext('Score') }}</small>
</td>
</tr>
</table>
</div>
</div>
</header>
<section id="dataset-slice-table">
<div class="container">
<h3>{{ gettext("Breakdown") }}</h3>
{% include 'includes/dataviews/table_slice_place.html' %}
{% if is_index %}
<div class="history">
<h6>{{ gettext("See other years") }}</h6>
<ul>
<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>
</p>
</div>
{% endif %}
</div>
</section>
{% endblock %}
{% block summarystats %}{% endblock %}