Skip to content

Commit

Permalink
Add Breadcrumbs zone (#4480)
Browse files Browse the repository at this point in the history
Related #3687
  • Loading branch information
agriffard authored and sebastienros committed Oct 10, 2019
1 parent 4595500 commit eaae2ff
Show file tree
Hide file tree
Showing 7 changed files with 171 additions and 162 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
@inject OrchardCore.Modules.ILocalClock LocalClock

<h1>@RenderTitleSegments(Model.WorkflowType.Name)</h1>

<zone name="Breadcrumbs">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a asp-action="Index" asp-controller="WorkflowType">@T["Workflow Types"]</a></li>
Expand All @@ -13,7 +13,7 @@
<li class="breadcrumb-item active" aria-current="page">@Model.Workflow.WorkflowId</li>
</ol>
</nav>

</zone>
<nav class="form-group">
<ul class="nav nav-pills" role="tablist">
<li class="nav-item">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
@using OrchardCore.Workflows.ViewModels;

<h1>@RenderTitleSegments(T["{0} Workflows", Model.WorkflowType.Name])</h1>

<zone name="Breadcrumbs">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a asp-action="Index" asp-controller="WorkflowType">@T["Workflow Types"]</a></li>
<li class="breadcrumb-item"><a asp-action="Edit" asp-controller="WorkflowType" asp-route-id="@Model.WorkflowType.Id">@Model.WorkflowType.Name</a></li>
<li class="breadcrumb-item active" aria-current="page">@T["Workflows"]</li>
</ol>
</nav>

</zone>
<nav class="admin-toolbar">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
@using OrchardCore.Workflows.ViewModels;

<h1>@RenderTitleSegments(Model.WorkflowType.Name)</h1>

<zone name="Breadcrumbs">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a asp-action="Index">@T["Workflow Types"]</a></li>
<li class="breadcrumb-item active" aria-current="page">@Model.WorkflowType.Name</li>
</ol>
</nav>

</zone>
<nav class="admin-toolbar">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
Expand Down
5 changes: 5 additions & 0 deletions src/OrchardCore.Themes/TheAdmin/Assets/scss/TheAdmin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ body {
.nav-link {
font-size: 14px;
}

.breadcrumb {
background-color:transparent;
margin-top: 1rem;
}
}


Expand Down
3 changes: 2 additions & 1 deletion src/OrchardCore.Themes/TheAdmin/Views/Layout.cshtml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!DOCTYPE html>
<html lang="@Orchard.CultureName()" dir="@Orchard.CultureDir()">
<head>
<title>@RenderTitleSegments(Site.SiteName, "before")</title>
Expand Down Expand Up @@ -49,6 +49,7 @@

<div class="ta-content">
@await RenderSectionAsync("Messages", required: false)
@await RenderSectionAsync("Breadcrumbs", required: false)

@await RenderBodyAsync()
</div>
Expand Down

0 comments on commit eaae2ff

Please sign in to comment.