Skip to content

Commit a6335fd

Browse files
committed
4.1.0 - Update template to include disambiguatingDescription
1 parent 1d85465 commit a6335fd

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

OpenActive.DatasetSite.NET.Tests/SimpleImplementation.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ public void SettingsContainedInRenderedPage()
2323
// Customer-specific settings for dataset JSON (these should come from a database)
2424
var settings = new DatasetSiteGeneratorSettings
2525
{
26-
OpenDataFeedBaseUrl = "https://customer.example.com/feed/".ParseUrlOrNull(),
27-
OpenBookingAPIBaseUrl = "https://customer.example.com/api/openbooking/".ParseUrlOrNull(),
28-
OpenBookingAPIAuthenticationAuthority = "https://auth.acmebooker.example.com/".ParseUrlOrNull(),
26+
OpenDataFeedBaseUrl = "https://customer.example.com/feed".ParseUrlOrNull(),
27+
OpenBookingAPIBaseUrl = "https://customer.example.com/api/openbooking".ParseUrlOrNull(),
28+
OpenBookingAPIAuthenticationAuthority = "https://auth.acmebooker.example.com".ParseUrlOrNull(),
2929
DatasetSiteUrl = "https://halo-odi.legendonlineservices.co.uk/openactive/".ParseUrlOrNull(),
3030
DatasetDiscussionUrl = "https://github.com/gll-better/opendata".ParseUrlOrNull(),
3131
DatasetDocumentationUrl = "https://docs.acmebooker.example.com/".ParseUrlOrNull(),

OpenActive.DatasetSite.NET/OpenActive.DatasetSite.NET.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<PackageTags>OpenActive dataset site</PackageTags>
1313
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
1414
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
15-
<Version>4.0.3</Version>
15+
<Version>4.1.0</Version>
1616
<Description>.NET library for rendering an OpenActive Dataset Site</Description>
1717
</PropertyGroup>
1818

OpenActive.DatasetSite.NET/metadata/DatasetSiteMustacheTemplate.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -957,6 +957,10 @@ @media screen and (max-width: 360px) {
957957
<!-- Main -->
958958
<section id=""main"">
959959
<header>
960+
{{#disambiguatingDescription}}
961+
<p class=""warning"">{{.}}</p>
962+
{{/disambiguatingDescription}}
963+
960964
<div>
961965
<a href=""{{publisher.url}}"" about=""{{publisher.url}}"" property=""foaf:homepage"">
962966
<span class=""avatar"" property=""foaf:name"" content=""{{publisher.name}}""><img class=""logo"" src=""{{publisher.logo.url}}"" alt="""" /></span>

0 commit comments

Comments
 (0)