-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ati: Add basic page displaying the ati tests for each publisher
- Loading branch information
Showing
5 changed files
with
113 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
{% extends 'base.html' %} | ||
{% block content %} | ||
<div class="row"> | ||
<div class="col-xs-12"> | ||
<div class="panel panel-default"> | ||
<div class="panel-body"> | ||
<p>This is a work in progress development copy.</p> | ||
</div> | ||
</div> | ||
|
||
<div class="panel panel-default"> | ||
<div class="panel-heading"><h3 class="panel-title">Organisation Tests</h3></div> | ||
<div class="panel-body"> | ||
<p>Organisations: {{ publisher_stats.organisations }}</p> | ||
{% include '_partials/tablesorter_instructions.html' %} | ||
</div> | ||
<table class="table table-striped"> | ||
<thead> | ||
<tr> | ||
<th>Test Name</th> | ||
<th>Count</th> | ||
<th>Percentage</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for test_name, test_count in publisher_stats.ati_tests["iati-organisation"].items() %} | ||
<tr> | ||
<td>{{ test_name }}</td> | ||
<td>{{ test_count }}</td> | ||
<td>{{ (test_count / publisher_stats.organisations * 100) | round_nicely }}</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
</div> | ||
|
||
<div class="panel panel-default"> | ||
<div class="panel-heading"><h3 class="panel-title">Activity Tests</h3></div> | ||
<div class="panel-body"> | ||
<p>Activities: {{ publisher_stats.activities }}</p> | ||
<p>Current activities: {{ publisher_stats.ati_current }}</p> | ||
{% include '_partials/tablesorter_instructions.html' %} | ||
</div> | ||
<table class="table table-striped"> | ||
<thead> | ||
<tr> | ||
<th>Test Name</th> | ||
<th>Count (all)</th> | ||
<th>Percentage (all)</th> | ||
<th>Count (current)</th> | ||
<th>Percentage (current)</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for test_name, test_count in publisher_stats.ati_tests["iati-activity"].items() %} | ||
<tr> | ||
<td>{{ test_name }}</td> | ||
<td>{{ test_count }}</td> | ||
<td>{{ (test_count / publisher_stats.activities * 100) | round_nicely }}</td> | ||
<td>{{ publisher_stats.ati_tests_current["iati-activity"][test_name] }}</td> | ||
<td>{{ (publisher_stats.ati_tests_current["iati-activity"][test_name] / publisher_stats.ati_current * 100) | round_nicely }}</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{% extends 'base.html' %} | ||
{% block content %} | ||
<div class="row"> | ||
<div class="col-xs-12"> | ||
<div class="panel panel-default"> | ||
<div class="panel-heading"><h3 class="panel-title"></h3></div> | ||
<div class="panel-body"> | ||
<p>This is a work in progress development copy.</p> | ||
<ul> | ||
{% for publisher_title, publisher in publishers_ordered_by_title %} | ||
<li><a href="{{ url('dash-ati-publisher-detail', args=[publisher]) }}">{{ publisher_name[publisher] }}</a></li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters