Skip to content

Commit

Permalink
New stat/report: bodsVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
jarofgreen committed Jul 16, 2019
1 parent 6086247 commit 524a393
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
18 changes: 18 additions & 0 deletions cove_bods/templates/cove_bods/explore.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,24 @@
{% endblock %}

{% block explore_content %}



<div class="row">

<div class="panel panel-success">
<div id="validation-panel" class="panel-heading pointer" role="region" aria-expanded="true" aria-controls="validationTable" data-toggle="collapse" data-target="#validationTable">
<h4 class="panel-title">
<span class="glyphicon glyphicon-collapse-up"></span>{% trans 'Schema Version' %}
</h4>
</div>
<div id="validationTable" class="collapse in panel-body">
<p>{% trans 'Schema Version Used' %}: {{ schema_version_used }}</p>
</div>
</div>
</div>


<div class="row">

<div class="panel panel-success">
Expand Down
3 changes: 3 additions & 0 deletions cove_bods/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ def explore_bods(request, pk):
db_data.rendered = True
db_data.save()

# Some extra info from the Schema
context['schema_version_used'] = schema_bods.schema_version

# We need to calculate some stats for showing in the view
total_ownership_or_control_interest_statements = 0
for key, count in context['statistics']['count_ownership_or_control_statement_interest_statement_types'].items():
Expand Down

0 comments on commit 524a393

Please sign in to comment.