-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed placeholders in translations (#751)
* Fixed placeholders in translations * Corrected PR number in changelog * Updated test output to new year 2024
- Loading branch information
Showing
5 changed files
with
18 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,7 +75,7 @@ public function testRenderWithLogs() | |
$aws->ngRestModelClass = User::class; | ||
$aws->setItemId(1); | ||
|
||
$expect = '<script>zaa.bootstrap.register(\'UserHistorySummaryController\', [\'$scope\', function($scope) { $scope.pie = false; $scope.loadPieCharts = function() { $scope.$parent.sendActiveWindowCallback(\'pie\').then(function(response) { $scope.pie = response.data; }); }; $scope.loadPieCharts(); }]);</script><div class="row" ng-controller="UserHistorySummaryController"><div class="col-lg-3"><div class="card mb-4"><div class="card-header">Profile details</div><div class="table-responsive"><table class="table table-sm table-borderless table-striped small"><tr><td>Title</td><td>1</td></tr><tr><td>Name</td><td>Foo Bar</td></tr><tr><td>Email</td><td><a href="mailto:[email protected]">[email protected]</a></td></tr><tr><td>Removed</td><td>No</td></tr><tr><td>Groups</td><td></td></tr><tr><td>Last API activity</td><td>5/23/70, 9:21 PM</td></tr></table></div></div><div class="card mb-4"><div class="card-header">Total contributions</div><div class="card-body" ng-if="pie"><echarts id="userEchart" data="pie"></echarts></div></div><div class="card"><div class="card-header">Custom settings</div><div class="table-responsive"><table class="table table-sm table-borderless table-striped small"></table></div></div></div><div class="col-lg-3"><div class="card"><div class="card-header">Latest sessions</div><table class="table table-sm table-striped table-borderless table-hoverable small mb-0"></table></div></div><div class="col-lg-6"><div class="card"><div class="card-header">Change history</div><ul class="list-group list-group-flush"><li class="list-group-item d-flex justify-content-between align-items-center p-2"><span><i class="material-icons" alt="Updated">create</i><span class="badge badge-secondary"></span><span class="badge badge-info">ID #</span>53 years ago</span><span class="badge badge-primary badge-pill" ng-click="hiddenElement1=!hiddenElement1">Diff</span></li><li class="list-group-item p-0" ng-show="hiddenElement1"><div class="table-responsive"><table class="table table-sm table-striped table-borderless table-hoverable small"><thead><tr><th class="w-25">Attribute</th><th class="w-25">Old</th><th class="w-50">New</th></tr></thead><tr><td colspan="3">No changes</td></tr></table></div></li><li class="list-group-item d-flex justify-content-between align-items-center p-2"><span><i class="material-icons" alt="Updated">create</i><span class="badge badge-secondary"></span><span class="badge badge-info">ID #</span>53 years ago</span><span class="badge badge-primary badge-pill" ng-click="hiddenElement2=!hiddenElement2">Diff</span></li><li class="list-group-item p-0" ng-show="hiddenElement2"><div class="table-responsive"><table class="table table-sm table-striped table-borderless table-hoverable small"><thead><tr><th class="w-25">Attribute</th><th class="w-25">Old</th><th class="w-50">New</th></tr></thead><tr><td>foo</td><td>bar</td><td>baz</td></tr></table></div></li><li class="list-group-item d-flex justify-content-between align-items-center p-2"><span><i class="material-icons" alt="Added">add_box</i><span class="badge badge-secondary"></span><span class="badge badge-info">ID #</span>53 years ago</span><span class="badge badge-primary badge-pill" ng-click="hiddenElement3=!hiddenElement3">Diff</span></li><li class="list-group-item p-0" ng-show="hiddenElement3"><div class="table-responsive"><table class="table table-sm table-striped table-borderless table-hoverable small"><thead><tr><th class="w-25">Attribute</th><th class="w-25">Old</th><th class="w-50">New</th></tr></thead><tr><td>foo</td><td>-</td><td>baz</td></tr></table></div></li><li class="list-group-item d-flex justify-content-between align-items-center p-2"><span><i class="material-icons" alt="Updated">create</i><span class="badge badge-secondary"></span><span class="badge badge-info">ID #</span>53 years ago</span><span class="badge badge-primary badge-pill" ng-click="hiddenElement4=!hiddenElement4">Diff</span></li><li class="list-group-item p-0" ng-show="hiddenElement4"><div class="table-responsive"><table class="table table-sm table-striped table-borderless table-hoverable small"><thead><tr><th class="w-25">Attribute</th><th class="w-25">Old</th><th class="w-50">New</th></tr></thead><tr><td colspan="3">No changes</td></tr></table></div></li></ul></div></div></div>'; | ||
$expect = '<script>zaa.bootstrap.register(\'UserHistorySummaryController\', [\'$scope\', function($scope) { $scope.pie = false; $scope.loadPieCharts = function() { $scope.$parent.sendActiveWindowCallback(\'pie\').then(function(response) { $scope.pie = response.data; }); }; $scope.loadPieCharts(); }]);</script><div class="row" ng-controller="UserHistorySummaryController"><div class="col-lg-3"><div class="card mb-4"><div class="card-header">Profile details</div><div class="table-responsive"><table class="table table-sm table-borderless table-striped small"><tr><td>Title</td><td>1</td></tr><tr><td>Name</td><td>Foo Bar</td></tr><tr><td>Email</td><td><a href="mailto:[email protected]">[email protected]</a></td></tr><tr><td>Removed</td><td>No</td></tr><tr><td>Groups</td><td></td></tr><tr><td>Last API activity</td><td>5/23/70, 9:21 PM</td></tr></table></div></div><div class="card mb-4"><div class="card-header">Total contributions</div><div class="card-body" ng-if="pie"><echarts id="userEchart" data="pie"></echarts></div></div><div class="card"><div class="card-header">Custom settings</div><div class="table-responsive"><table class="table table-sm table-borderless table-striped small"></table></div></div></div><div class="col-lg-3"><div class="card"><div class="card-header">Latest sessions</div><table class="table table-sm table-striped table-borderless table-hoverable small mb-0"></table></div></div><div class="col-lg-6"><div class="card"><div class="card-header">Change history</div><ul class="list-group list-group-flush"><li class="list-group-item d-flex justify-content-between align-items-center p-2"><span><i class="material-icons" alt="Updated">create</i><span class="badge badge-secondary"></span><span class="badge badge-info">ID #</span>54 years ago</span><span class="badge badge-primary badge-pill" ng-click="hiddenElement1=!hiddenElement1">Diff</span></li><li class="list-group-item p-0" ng-show="hiddenElement1"><div class="table-responsive"><table class="table table-sm table-striped table-borderless table-hoverable small"><thead><tr><th class="w-25">Attribute</th><th class="w-25">Old</th><th class="w-50">New</th></tr></thead><tr><td colspan="3">No changes</td></tr></table></div></li><li class="list-group-item d-flex justify-content-between align-items-center p-2"><span><i class="material-icons" alt="Updated">create</i><span class="badge badge-secondary"></span><span class="badge badge-info">ID #</span>54 years ago</span><span class="badge badge-primary badge-pill" ng-click="hiddenElement2=!hiddenElement2">Diff</span></li><li class="list-group-item p-0" ng-show="hiddenElement2"><div class="table-responsive"><table class="table table-sm table-striped table-borderless table-hoverable small"><thead><tr><th class="w-25">Attribute</th><th class="w-25">Old</th><th class="w-50">New</th></tr></thead><tr><td>foo</td><td>bar</td><td>baz</td></tr></table></div></li><li class="list-group-item d-flex justify-content-between align-items-center p-2"><span><i class="material-icons" alt="Added">add_box</i><span class="badge badge-secondary"></span><span class="badge badge-info">ID #</span>54 years ago</span><span class="badge badge-primary badge-pill" ng-click="hiddenElement3=!hiddenElement3">Diff</span></li><li class="list-group-item p-0" ng-show="hiddenElement3"><div class="table-responsive"><table class="table table-sm table-striped table-borderless table-hoverable small"><thead><tr><th class="w-25">Attribute</th><th class="w-25">Old</th><th class="w-50">New</th></tr></thead><tr><td>foo</td><td>-</td><td>baz</td></tr></table></div></li><li class="list-group-item d-flex justify-content-between align-items-center p-2"><span><i class="material-icons" alt="Updated">create</i><span class="badge badge-secondary"></span><span class="badge badge-info">ID #</span>54 years ago</span><span class="badge badge-primary badge-pill" ng-click="hiddenElement4=!hiddenElement4">Diff</span></li><li class="list-group-item p-0" ng-show="hiddenElement4"><div class="table-responsive"><table class="table table-sm table-striped table-borderless table-hoverable small"><thead><tr><th class="w-25">Attribute</th><th class="w-25">Old</th><th class="w-50">New</th></tr></thead><tr><td colspan="3">No changes</td></tr></table></div></li></ul></div></div></div>'; | ||
|
||
$this->assertContainsTrimmed($expect, $aws->index()); | ||
|
||
|