Add breadcrumbs to admin project documentation views
- Implement breadcrumbs for `index`, `create`, and `edit` views. - Add conditional logic to handle optional category paths in `create` and `edit` views.
This commit is contained in:
+5
@@ -2,6 +2,11 @@
|
|||||||
@section('h1')
|
@section('h1')
|
||||||
{{ __('admin-sections.Project') . ': ' . $project->name . ' (' . $version->title . ')' }}
|
{{ __('admin-sections.Project') . ': ' . $project->name . ' (' . $version->title . ')' }}
|
||||||
@endsection
|
@endsection
|
||||||
|
@if(!empty($categoryPath))
|
||||||
|
@section('breadcrumbs', Breadcrumbs::render('admin.projects.documentation-versions.category-path.documentations.create', $project, $version, $categoryPath))
|
||||||
|
@else
|
||||||
|
@section('breadcrumbs', Breadcrumbs::render('admin.projects.documentation-versions.documentations.create', $project, $version))
|
||||||
|
@endif
|
||||||
<x-admin.layout>
|
<x-admin.layout>
|
||||||
@include('admin.projects.documentation-versions.documentations._top')
|
@include('admin.projects.documentation-versions.documentations._top')
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|||||||
+5
@@ -2,6 +2,11 @@
|
|||||||
@section('h1')
|
@section('h1')
|
||||||
{{ __('admin-sections.Project') . ': ' . $project->name . ' (' . $version->title . ')' }}
|
{{ __('admin-sections.Project') . ': ' . $project->name . ' (' . $version->title . ')' }}
|
||||||
@endsection
|
@endsection
|
||||||
|
@if(!empty($categoryPath))
|
||||||
|
@section('breadcrumbs', Breadcrumbs::render('admin.projects.documentation-versions.category-path.documentations.edit', $project, $version, $documentation, $categoryPath))
|
||||||
|
@else
|
||||||
|
@section('breadcrumbs', Breadcrumbs::render('admin.projects.documentation-versions.documentations.edit', $project, $version, $documentation))
|
||||||
|
@endif
|
||||||
<x-admin.layout>
|
<x-admin.layout>
|
||||||
@include('admin.projects.documentation-versions.documentations._top')
|
@include('admin.projects.documentation-versions.documentations._top')
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|||||||
+1
@@ -2,6 +2,7 @@
|
|||||||
@section('h1')
|
@section('h1')
|
||||||
{{ __('admin-sections.Project') . ': ' . $project->name . ' (' . $version->title . ')' }}
|
{{ __('admin-sections.Project') . ': ' . $project->name . ' (' . $version->title . ')' }}
|
||||||
@endsection
|
@endsection
|
||||||
|
@section('breadcrumbs', Breadcrumbs::render('admin.projects.documentation-versions.documentations.index', $project, $version))
|
||||||
<x-admin.layout>
|
<x-admin.layout>
|
||||||
@include('admin.projects.documentation-versions.documentations._top')
|
@include('admin.projects.documentation-versions.documentations._top')
|
||||||
<div class="card border-0 shadow mb-4">
|
<div class="card border-0 shadow mb-4">
|
||||||
|
|||||||
Reference in New Issue
Block a user