Skip to content

Commit

Permalink
Merge a left-over HTML template
Browse files Browse the repository at this point in the history
there are no-more legacy run/ templates and the only one left
is merges inside its parent.

Closes #189 because there are no more `javascript:void` references
left in the code base.

Closes #241 because there are no more legacy buttons.
  • Loading branch information
atodorov committed Dec 1, 2020
1 parent 11ed290 commit d1bb9e6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
8 changes: 7 additions & 1 deletion tcms/templates/dashboard.html
Expand Up @@ -11,7 +11,13 @@
{% for test_run in last_15_test_runs %}
<tr>
<td>
{% include "run/status_progress_patternfly.html" with stats=test_run.stats_executions_status %}
{% with test_run.stats_executions_status as stats %}
<span>{% blocktrans with amount=stats.CompletedPercentage|floatformat:0 %}{{ amount }}% complete{% endblocktrans %}</span>
<div class="progress">
<div class="progress-bar progress-bar-striped progress-bar-success" style="width: {{ stats.SuccessPercentage|floatformat:0}}%;"></div>
<div class="progress-bar progress-bar-striped progress-bar-danger" style="width: {{ stats.FailurePercentage|floatformat:0 }}%"></div>
</div>
{% endwith %}
</td>
<td>
<a href="{% url "testruns-get" test_run.pk %}">{{ test_run.summary }}</a>
Expand Down
7 changes: 0 additions & 7 deletions tcms/templates/run/status_progress_patternfly.html

This file was deleted.

0 comments on commit d1bb9e6

Please sign in to comment.