diff options
Diffstat (limited to 'src/pybind/mgr/dashboard/frontend/src/app/core/navigation/breadcrumbs/breadcrumbs.component.html')
-rw-r--r-- | src/pybind/mgr/dashboard/frontend/src/app/core/navigation/breadcrumbs/breadcrumbs.component.html | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/breadcrumbs/breadcrumbs.component.html b/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/breadcrumbs/breadcrumbs.component.html new file mode 100644 index 000000000..05232b7fa --- /dev/null +++ b/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/breadcrumbs/breadcrumbs.component.html @@ -0,0 +1,11 @@ +<ol *ngIf="crumbs.length" + class="breadcrumb"> + <li *ngFor="let crumb of crumbs; let last = last" + [ngClass]="{ 'active': last && finished }" + class="breadcrumb-item"> + <a *ngIf="!last && crumb.path !== null" + [routerLink]="crumb.path" + preserveFragment>{{ crumb.text }}</a> + <span *ngIf="last || crumb.path === null">{{ crumb.text }}</span> + </li> +</ol> |