Skip to content

Commit

Permalink
fix size and spacing of total time element
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRDOrazio committed Sep 8, 2024
1 parent 8f7223d commit ad3d3b9
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 9 deletions.
2 changes: 1 addition & 1 deletion includes/I18n.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class I18n
{
public string $locale;
public array $langsAvailable = [];
public array $langsAssoc = [];
public array $langsAssoc = [];

public function __construct()
{
Expand Down
12 changes: 6 additions & 6 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@ class="btn btn-primary" disabled
<div class="col-2 text-white bg-success p-2">
<i class="fas fa-circle-check fa-fw"></i> <?php echo _("Successful tests:"); ?> <span id="successfulCount" class="successfulCount">0</span>
</div>
<div class="col-1 text-white bg-danger p-2">
<div class="col-2 text-white bg-danger p-2">
<i class="fas fa-circle-xmark fa-fw"></i> <?php echo _("Failed tests:"); ?> <span id="failedCount" class="failedCount">0</span>
</div>
<div class="col-3 text-white bg-dark p-2">
<div class="col-2 text-white bg-dark p-2">
<i class="fas fa-stopwatch fa-fw"></i> <?php
echo sprintf(_("Total time for %s tests:"), "<span id=\"total-tests-count\"></span>");
?> <span id="total-time">0 seconds, 0ms</span>
?> <span id="total-time">0</span>
</div>
</div>
<div class="accordion" id="testSuiteAccordion">
Expand All @@ -102,7 +102,7 @@ class="btn btn-primary" disabled
<div class="col-3 text-white p-2 text-center test-results bg-dark">
<i class="fas fa-stopwatch fa-fw"></i> <?php
echo sprintf(_("Total time for %s tests:"), "<span id=\"totalSourceDataTestsCount\"></span>");
?> <span id="totalSourceDataTestsTime">0 seconds, 0ms</span>
?> <span id="totalSourceDataTestsTime">0</span>
</div>
</button>
</h2>
Expand Down Expand Up @@ -134,7 +134,7 @@ class="btn btn-primary" disabled
<div class="col-3 text-white p-2 text-center test-results bg-dark">
<i class="fas fa-stopwatch fa-fw"></i> <?php
echo sprintf(_("Total time for %s tests:"), "<span id=\"totalCalendarDataTestsCount\"></span>");
?> <span id="totalCalendarDataTestsTime">0 seconds, 0ms</span>
?> <span id="totalCalendarDataTestsTime">0</span>
</div>
</button>
</h2>
Expand Down Expand Up @@ -165,7 +165,7 @@ class="btn btn-primary" disabled
<div class="col-3 text-white p-2 text-center test-results bg-dark">
<i class="fas fa-stopwatch fa-fw"></i> <?php
echo sprintf(_("Total time for %s tests:"), "<span id=\"totalUnitTestsCount\"></span>");
?> <span id="totalUnitTestsTime">0 seconds, 0ms</span>
?> <span id="totalUnitTestsTime">0</span>
</div>
</button>
</h2>
Expand Down
12 changes: 10 additions & 2 deletions layout/footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,16 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/js/all.min.js"></script>

<!-- i18next -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/i18next/21.6.6/i18next.min.js" integrity="sha512-3CUvxyR4WtlZanN/KmorrZ2VALnUndAQBYjf1HEYNa6McBY+G2zYq4gOZPUDkDtuk3uBdQIva0Lk89hYQ9fQrA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-i18next/1.2.1/jquery-i18next.min.js" integrity="sha512-79RgNpOyaf8AvNEUdanuk1x6g53UPoB6Fh2uogMkOMGADBG6B0DCzxc+dDktXkVPg2rlxGvPeAFKoZxTycVooQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/i18next/21.6.6/i18next.min.js"
integrity="sha512-3CUvxyR4WtlZanN/KmorrZ2VALnUndAQBYjf1HEYNa6McBY+G2zYq4gOZPUDkDtuk3uBdQIva0Lk89hYQ9fQrA=="
crossorigin="anonymous"
referrerpolicy="no-referrer">
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-i18next/1.2.1/jquery-i18next.min.js"
integrity="sha512-79RgNpOyaf8AvNEUdanuk1x6g53UPoB6Fh2uogMkOMGADBG6B0DCzxc+dDktXkVPg2rlxGvPeAFKoZxTycVooQ=="
crossorigin="anonymous"
referrerpolicy="no-referrer">
</script>
<script src="https://cdn.jsdelivr.net/npm/i18next-http-backend@1.3.1/i18nextHttpBackend.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-multiselect/1.1.2/js/bootstrap-multiselect.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.js"></script>
Expand Down

0 comments on commit ad3d3b9

Please sign in to comment.