Skip to content

Commit

Permalink
Fix rendering of aggregation details
Browse files Browse the repository at this point in the history
  • Loading branch information
ml-evs committed Jul 8, 2022
1 parent 1f1cd1b commit 1fbc2e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion make_ghpages/make_pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def get_index_metadb_data(base_url):
results["failure_messages"] = []
results["success_count"] = 0
results["internal_failure_count"] = 0
results["no_aggregate_reason"] = subdb["attributes"].get("no_aggregate_reason", "No reason given")
results["no_aggregate_reason"] = subdb["attributes"].get("no_aggregate_reason", "No details given")

else:
v1_url = url.strip("/") + "/v1" if not url.endswith("/v1") else ""
Expand Down
2 changes: 1 addition & 1 deletion make_ghpages/mod/templates/singlepage.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ <h3>Databases served by this provider</h3>
{% else %}
<span style="display: table-cell; float: none; text-align: right;"><span class="badge-left blue tooltip" style="float: none; display: inline; text-align: right; border: none">Aggregation is discouraged for this database<span class="tooltiptext">Results of validation</span></span></span>
<span style="display: table-cell; float: none; text-align: left;"><span class="badge-right tooltip" style="color: #fff; background-color: {{index_metadb['subdb_validation'][subdb.attributes.base_url]['_validator_results_colour']}}; float: none; display: inline; text-align: left; border: none"> {{ index_metadb.subdb_validation[subdb.attributes.base_url]['aggregate'] }}
{% if index_metadb.subdb_validation[subdb.attributes.base_url]['no_aggregate_reason'] is not none %}}
{% if index_metadb.subdb_validation[subdb.attributes.base_url]['no_aggregate_reason'] is not none %}
: {{ index_metadb.subdb_validation[subdb.attributes.base_url]['no_aggregate_reason'] }}
{% endif %}
</span></span>
Expand Down

0 comments on commit 1fbc2e2

Please sign in to comment.