-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'support/13.x' into develop
- Loading branch information
Showing
28 changed files
with
259 additions
and
532 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
27 changes: 0 additions & 27 deletions
27
...s/Umbraco.StorageProviders.AzureBlob.TestSite/Views/MacroPartials/FeaturedProducts.cshtml
This file was deleted.
Oops, something went wrong.
102 changes: 0 additions & 102 deletions
102
...es/Umbraco.StorageProviders.AzureBlob.TestSite/Views/MacroPartials/LatestBlogposts.cshtml
This file was deleted.
Oops, something went wrong.
49 changes: 49 additions & 0 deletions
49
...rageProviders.AzureBlob.TestSite/Views/Partials/Components/LatestBlogPosts/Default.cshtml
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
@using Umbraco.Cms.Core.Models.PublishedContent | ||
@using Umbraco.Extensions | ||
@model Umbraco.SampleSite.Models.LatestBlogPostsViewModel; | ||
|
||
<div class="blogposts"> | ||
@foreach (IPublishedContent post in Model.BlogPosts) | ||
{ | ||
<a href="@post.Url()" class="blogpost"> | ||
<div class="blogpost-meta"> | ||
<small class="blogpost-date">@post.CreateDate.ToShortDateString()</small> | ||
<small class="blogpost-cat"> | ||
@await Html.PartialAsync("~/Views/Partials/CategoryLinks.cshtml", post.Value<IEnumerable<string>>("categories")) | ||
</small> | ||
</div> | ||
<h3 class="blogpost-title">@post.Value("pageTitle")</h3> | ||
<div class="blogpost-excerpt">@post.Value("excerpt")</div> | ||
</a> | ||
} | ||
|
||
@if (Model.BlogPosts.Count() < Model.Total) | ||
{ | ||
<div class="pagination"> | ||
<nav class="nav-bar nav-bar--center"> | ||
@if (Model.Page <= 1) | ||
{ | ||
<span class="nav-link nav-link--black nav-link--disabled">Prev</span> | ||
} | ||
else | ||
{ | ||
<a class="nav-link nav-link--black" href="@(Model.Url + "?page=" + (Model.Page - 1))">Prev</a> | ||
} | ||
|
||
@for (int i = 1; i <= Model.PageCount; i++) | ||
{ | ||
<a class="nav-link nav-link--black @(Model.Page == i ? " nav-link--active" : null)" href="@(Model.Url + "?page=" + i)">@i</a> | ||
} | ||
@if (Model.Page == Model.PageCount) | ||
{ | ||
<span class="nav-link nav-link--black nav-link--disabled">Next</span> | ||
} | ||
else | ||
{ | ||
<a class="nav-link nav-link--black" href="@(Model.Url + "?page=" + (Model.Page + 1))">Next</a> | ||
} | ||
|
||
</nav> | ||
</div> | ||
} | ||
</div> |
3 changes: 3 additions & 0 deletions
3
...geProviders.AzureBlob.TestSite/Views/Partials/Components/LatestBlogPosts/NoContent.cshtml
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<div class="blogposts"> | ||
<h1>There are no posts at this time, try again later.</h1> | ||
</div> |
5 changes: 5 additions & 0 deletions
5
...geProviders.AzureBlob.TestSite/Views/Partials/blockgrid/Components/latestBlogposts.cshtml
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage<Umbraco.Cms.Core.Models.Blocks.BlockGridItem<ContentModels.LatestBlogposts>>; | ||
@using ContentModels = Umbraco.Cms.Web.Common.PublishedModels; | ||
|
||
@await Component.InvokeAsync("LatestBlogPosts", | ||
new { numberOfPosts = Model.Content.NumberOfPosts, startNodeKey = Model.Content.StartNode?.Key ?? Guid.Empty }) |
4 changes: 2 additions & 2 deletions
4
...co.StorageProviders.AzureBlob.TestSite/Views/Partials/blocklist/Components/Feature.cshtml
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
Oops, something went wrong.