mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 02:04:03 +00:00
Old version notice
This commit is contained in:
parent
072eb36494
commit
513a56d55b
1 changed files with 8 additions and 1 deletions
|
|
@ -69,7 +69,14 @@
|
||||||
@include('_nav.menu', ['items' => $page->navigation[$page->version()]])
|
@include('_nav.menu', ['items' => $page->navigation[$page->version()]])
|
||||||
</nav>
|
</nav>
|
||||||
<div class="markdown lg:pl-4 md:col-span-6 lg:col-span-4 col-span-8 pb-16 break-words" v-pre>
|
<div class="markdown lg:pl-4 md:col-span-6 lg:col-span-4 col-span-8 pb-16 break-words" v-pre>
|
||||||
@yield('content')
|
@if($page->version() !== $page->defaultVersion)
|
||||||
|
<div class="bg-yellow-50 border border-yellow-100 text-yellow-800 w-full px-4 py-3 rounded-lg">
|
||||||
|
You're looking at {{ $page->version() }} documentation. The current version is {{ $page->defaultVersion }}.
|
||||||
|
You can find the docs for the current version <a href="/docs/{{ $page->defaultVersion }}">here</a>.
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
|
|
||||||
|
@yield('content')
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue