Fix views

This commit is contained in:
Bjarke Berg
2020-02-11 10:28:34 +01:00
parent c76fff9d04
commit 9449ed9a4d
5 changed files with 5 additions and 5 deletions

View File

@@ -18,7 +18,7 @@
@* For each page in the ancestors collection which have been ordered by Level (so we start with the highest top node first) *@
@foreach (var item in selection.OrderBy(x => x.Level))
{
<li><a href="@item.Url">@item.Name</a> <span class="divider">/</span></li>
<li><a href="@item.Url()">@item.Name</a> <span class="divider">/</span></li>
}
@* Display the current page as the last item in the list *@

View File

@@ -45,7 +45,7 @@
@helper Render(IPublishedContent item)
{
<div class="col-xs-6 col-md-3">
<a href="@item.Url" class="thumbnail">
<a href="@item.Url()" class="thumbnail">
<img src="@item.GetCropUrl(width:200, height:200)" alt="@item.Name" />
</a>
</div>

View File

@@ -18,7 +18,7 @@
@* For each page in the ancestors collection which have been ordered by Level (so we start with the highest top node first) *@
@foreach (var item in selection.OrderBy(x => x.Level))
{
<li><a href="@item.Url">@item.Name</a> &raquo;</li>
<li><a href="@item.Url()">@item.Name</a> &raquo;</li>
}
@* Display the current page as the last item in the list *@

View File

@@ -16,7 +16,7 @@
@foreach (var item in selection)
{
<li class="@(item.IsAncestorOrSelf(Model.Content) ? "current" : null)">
<a href="@item.Url">@item.Name</a>
<a href="@item.Url()">@item.Name</a>
</li>
}
</ul>

View File

@@ -33,7 +33,7 @@
@foreach (var item in selection)
{
<li class="level-@item.Level">
<a href="@item.Url">@item.Name</a>
<a href="@item.Url()">@item.Name</a>
@* Run the traverse helper again for any child pages *@
@Traverse(item)