Skip to content

Commit 6c53130

Browse files
committed
Tweaks name of user attribute being passed and improves styling of launch page
1 parent 19a263d commit 6c53130

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

DigitalLearningSolutions.Web/Helpers/ExternalApis/TableauConnectionHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public string GetTableauJwt(string email)
4242
{ "exp", new DateTimeOffset(DateTime.UtcNow.AddMinutes(5)).ToUnixTimeSeconds() },
4343
{ "sub", user },
4444
{ "scp", new[] { "tableau:views:embed" } },
45-
{ "UsersPrimaryEmail", email}
45+
{ "Email", email}
4646
};
4747
var token = new JwtSecurityToken(header, payload);
4848
var tokenHandler = new JwtSecurityTokenHandler();

DigitalLearningSolutions.Web/Views/TrackingSystem/Centre/SelfAssessmentReports/Index.cshtml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@
1818
<span class="nhsuk-u-visually-hidden"> - </span>
1919
</span>@ViewData["Title"]
2020
</h1>
21-
<p class="nhsuk-lede-text">Use this page to download Excel learner activity reports for competency self assessments at your centre.</p>
21+
@if (Model.SelfAssessmentSelects.Any())
22+
{
23+
<vc:action-link asp-controller="SelfAssessmentReports" asp-action="TableauCompetencyDashboard" asp-all-route-data="@new Dictionary<string, string>();" link-text="View Tableau competency self assessment dashboard" />
24+
}
25+
<h2>Excel learner activity reports</h2>
26+
<p class="nhsuk-lede-text">Download Excel competency self assessments activity reports for your centre.</p>
2227
<ul>
2328
<li>
2429
<a asp-controller="SelfAssessmentReports" asp-action="DownloadDigitalCapabilityToExcel">Digital Skills Assessment Tool - Download report</a>
@@ -39,15 +44,9 @@
3944
}
4045
</li>
4146
}
42-
@if (Model.SelfAssessmentSelects.Any())
43-
{
44-
<li>
45-
<a asp-controller="SelfAssessmentReports" asp-action="TableauCompetencyDashboard">@($"View Tableau Competency Dashboards")</a>
46-
</li>
47-
}
4847
}
4948
</ul>
50-
49+
5150

5251
</div>
5352
</div>

0 commit comments

Comments
 (0)