|
16 | 16 | </umb-editor-header>
|
17 | 17 |
|
18 | 18 | <umb-editor-container>
|
19 |
| - <div class="umb-package-details" ng-if="recentData.length != 0"> |
| 19 | + <div class="umb-package-details"> |
20 | 20 | <div class="umb-package-details__main-content">
|
21 | 21 | <uui-box headline="Recently tested pages">
|
22 |
| - <uui-table style="margin-bottom: 24px;"> |
23 |
| - <uui-table-head> |
24 |
| - <uui-table-head-cell></uui-table-head-cell> |
25 |
| - <uui-table-head-cell>Last Run Date</uui-table-head-cell> |
26 |
| - <uui-table-head-cell>Carbon Rating</uui-table-head-cell> |
27 |
| - </uui-table-head> |
| 22 | + <div ng-if="recentData.length != 0"> |
| 23 | + <uui-table style="margin-bottom: 24px;"> |
| 24 | + <uui-table-head> |
| 25 | + <uui-table-head-cell></uui-table-head-cell> |
| 26 | + <uui-table-head-cell>Last Run Date</uui-table-head-cell> |
| 27 | + <uui-table-head-cell>Carbon Rating</uui-table-head-cell> |
| 28 | + </uui-table-head> |
28 | 29 |
|
29 |
| - <uui-table-row ng-repeat="data in recentData"> |
30 |
| - <uui-table-cell> |
31 |
| - <a style="text-decoration: underline;" href="/umbraco/#/content/content/edit/{{data.NodeId}}">{{data.NodeName}}</a> |
32 |
| - </uui-table-cell> |
| 30 | + <uui-table-row ng-repeat="data in recentData"> |
| 31 | + <uui-table-cell> |
| 32 | + <a style="text-decoration: underline;" href="/umbraco/#/content/content/edit/{{data.NodeId}}">{{data.NodeName}}</a> |
| 33 | + </uui-table-cell> |
33 | 34 |
|
34 |
| - <uui-table-cell> |
35 |
| - {{data.RequestDate}} |
36 |
| - </uui-table-cell> |
| 35 | + <uui-table-cell> |
| 36 | + {{data.RequestDate}} |
| 37 | + </uui-table-cell> |
37 | 38 |
|
38 |
| - <uui-table-cell> |
39 |
| - <uui-tag style="font-size: 14px" color="{{vm.getTagColour(data.CarbonRating)}}"> |
40 |
| - {{data.CarbonRating}} |
41 |
| - </uui-tag> |
42 |
| - </uui-table-cell> |
43 |
| - </uui-table-row> |
44 |
| - </uui-table> |
| 39 | + <uui-table-cell> |
| 40 | + <uui-tag style="font-size: 14px" color="{{vm.getTagColour(data.CarbonRating)}}"> |
| 41 | + {{data.CarbonRating}} |
| 42 | + </uui-tag> |
| 43 | + </uui-table-cell> |
| 44 | + </uui-table-row> |
| 45 | + </uui-table> |
45 | 46 |
|
46 |
| - <uui-button look="primary" href="/umbraco#sustainability/sustainability/stats"> |
47 |
| - See more data |
48 |
| - </uui-button> |
| 47 | + <uui-button look="primary" href="/umbraco#sustainability/sustainability/stats"> |
| 48 | + See more data |
| 49 | + </uui-button> |
| 50 | + </div> |
| 51 | + <div ng-if="recentData.length == 0"> |
| 52 | + No data to show yet. Once you've run some tests, you'll see an overview of all your data here. |
| 53 | + </div> |
49 | 54 | </uui-box>
|
50 | 55 | </div>
|
51 |
| - <div class="umb-package-details__sidebar"> |
| 56 | + <div class="umb-package-details__sidebar" ng-if="recentData.length != 0"> |
52 | 57 | <div class="umb-user-cards">
|
53 | 58 | <uui-box headline="Average carbon rating">
|
54 | 59 | <uui-tag style="font-size: 14px;" color="{{vm.getTagColour(grade)}}">
|
|
74 | 79 | </div>
|
75 | 80 | </div>
|
76 | 81 |
|
77 |
| - <umb-empty-state ng-if="recentData.length == 0" |
78 |
| - position="center"> |
79 |
| - <p>No data to show yet.</p> |
80 |
| - </umb-empty-state> |
81 | 82 | </umb-editor-container>
|
82 | 83 |
|
83 | 84 | </umb-editor-view>
|
|
0 commit comments