Remove version history from provider ratio page

This doesn't work with 3 providers. You can still see the version
history for each provider on their dedicated page.
This commit is contained in:
Ben Thorner
2022-04-06 11:56:05 +01:00
parent 770e8bd0a3
commit a3231effb1
3 changed files with 1 additions and 173 deletions

View File

@@ -44,47 +44,4 @@
</div>
</div>
</div>
{% for day, versions in versions %}
<h2 class="heading-small top-gutter">
{% if day %}
{{ versions[0]['updated_at']|format_date_human|title }}
{% else %}
Start
{% endif %}
</h2>
<ul class="bottom-gutter">
{% for version in versions %}
<li class="history-list-item">
<div class="govuk-grid-row">
<div class="govuk-grid-column-one-third">
<div class="history-list-user">
{{ version.created_by.name or ('&nbsp;'|safe) }}
</div>
{% if version.updated_at %}
<div class="history-list-time">
{{ version.updated_at|format_time }}
</div>
{% endif %}
</div>
<div class="govuk-grid-column-two-thirds">
<div class="history-list-percentage">
<div class="history-list-percentage-left-label">
{{ first_provider }}<br><br>
{{ version.priority|format_thousands }}%
</div>
<div class="history-list-percentage-right-label">
{{ second_provider }}<br><br>
{{ (100 - version.priority)|format_thousands }}%
</div>
<div class="history-list-percentage-marker" style="left: {{ (100 -version.priority)|format_thousands }}%"></div>
</div>
</div>
</div>
</li>
{% endfor %}
</ul>
{% endfor %}
{% endblock %}