Skip to content

Commit 883817f

Browse files
author
Rick Butterfield
committed
Update the 'no data' view
1 parent 3556da7 commit 883817f

File tree

2 files changed

+31
-30
lines changed

2 files changed

+31
-30
lines changed

src/Umbraco.Community.Sustainability.TestSite.10.x/Umbraco.Community.Sustainability.TestSite.10.x.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="Umbraco.Cms" Version="10.8.1" />
10+
<PackageReference Include="Umbraco.Cms" Version="10.8.0" />
1111
<PackageReference Include="Umbraco.TheStarterKit" Version="10.0.0" />
1212
</ItemGroup>
1313

src/Umbraco.Community.Sustainability/wwwroot/UmbracoCommunitySustainability/backoffice/sustainability/overview.html

Lines changed: 30 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -16,39 +16,44 @@
1616
</umb-editor-header>
1717

1818
<umb-editor-container>
19-
<div class="umb-package-details" ng-if="recentData.length != 0">
19+
<div class="umb-package-details">
2020
<div class="umb-package-details__main-content">
2121
<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>
2829

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>
3334

34-
<uui-table-cell>
35-
{{data.RequestDate}}
36-
</uui-table-cell>
35+
<uui-table-cell>
36+
{{data.RequestDate}}
37+
</uui-table-cell>
3738

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>
4546

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>
4954
</uui-box>
5055
</div>
51-
<div class="umb-package-details__sidebar">
56+
<div class="umb-package-details__sidebar" ng-if="recentData.length != 0">
5257
<div class="umb-user-cards">
5358
<uui-box headline="Average carbon rating">
5459
<uui-tag style="font-size: 14px;" color="{{vm.getTagColour(grade)}}">
@@ -74,10 +79,6 @@
7479
</div>
7580
</div>
7681

77-
<umb-empty-state ng-if="recentData.length == 0"
78-
position="center">
79-
<p>No data to show yet.</p>
80-
</umb-empty-state>
8182
</umb-editor-container>
8283

8384
</umb-editor-view>

0 commit comments

Comments
 (0)