Files
LeafWeb/WebCms/Views/Partials/BottomNavigation.cshtml
T
poprhythm cf21f17bc1 Customize bootstrap with SASS
Update jquery validate for IE
Simplify scripting
Update home page logo
2016-12-13 09:40:40 -05:00

52 lines
1.2 KiB
Plaintext

@inherits UmbracoTemplatePage
@{
var home = CurrentPage.Site();
var loginStatus = Members.GetCurrentLoginStatus();
}
<div class="col-xs-6 col-sm-3">
<strong>User</strong>
<ul>
<li>
@Html.Partial("LoginStatus")
</li>
@if (loginStatus.IsLoggedIn)
{
<li>
<a href="~/umbraco#"><span class="glyphicon glyphicon-cog"></span> Site Editor</a>
</li>
}
</ul>
</div>
@*@if (home.Children.Where("Visible").Any())
{
foreach (var childPage in home.Children.Where("Visible"))
{
<div class="col-xs-6 col-sm-3">
@if (childPage.Children.Where("Visible").Any())
{
<strong>@childPage.Name</strong>
@childPages(childPage.Children)
}
</div>
}
}*@
@helper childPages(dynamic pages)
{
@* Ensure that we have a collection of pages *@
if (pages.Any())
{
<ul>
@foreach (var page in pages.Where("Visible"))
{
<li>
<a href="@page.Url">@page.Name</a>
</li>
}
</ul>
}
}