OneBot: Leantime 改造版源码(BOM/Univer 表格/AI 接管/品牌替换等)
This commit is contained in:
64
app/Domain/Menu/Templates/menu.blade.php
Normal file
64
app/Domain/Menu/Templates/menu.blade.php
Normal file
@@ -0,0 +1,64 @@
|
||||
@php
|
||||
/**
|
||||
* @todo Move this to Composer, or find a better
|
||||
* way to add filters for all passed variables
|
||||
*/
|
||||
use Leantime\Domain\Auth\Models\Roles;
|
||||
$settingsLink = $tpl->dispatchTplFilter(
|
||||
'settingsLink',
|
||||
$settingsLink,
|
||||
['type' => $menuType]
|
||||
);
|
||||
@endphp
|
||||
|
||||
|
||||
@dispatchEvent('beforeMenu')
|
||||
|
||||
<ul class="nav nav-tabs nav-stacked">
|
||||
|
||||
@dispatchEvent('afterMenuOpen')
|
||||
|
||||
@if ($allAvailableProjects
|
||||
|| !session()->has("currentProject")
|
||||
|| $menuType == "personal"
|
||||
|| $menuType == "company")
|
||||
|
||||
<li class="dropdown scrollableMenu">
|
||||
|
||||
<ul style="display:block;">
|
||||
|
||||
@foreach ($menuStructure as $key => $menuItem)
|
||||
|
||||
@includeIf("menu::partials.leftnav.".$menuItem['type'], ["menuItem" => $menuItem, "module" => $module, "action" => $action])
|
||||
|
||||
@endforeach
|
||||
|
||||
@if ($login::userIsAtLeast(Roles::$manager) && $menuType != 'company' && $menuType != 'personal' && $menuType != 'projecthub')
|
||||
<li class="fixedMenuPoint {{ $module == $settingsLink['module'] && $action == $settingsLink['action'] ? 'active' : '' }}">
|
||||
<a href="{{ BASE_URL }}/{{ $settingsLink['module'] }}/{{ $settingsLink['action'] }}/{{ session("currentProject") }}">
|
||||
{!! $settingsLink['label'] !!}
|
||||
</a>
|
||||
</li>
|
||||
@endif
|
||||
</ul>
|
||||
|
||||
</li>
|
||||
|
||||
@endif
|
||||
|
||||
@dispatchEvent('beforeMenuClose')
|
||||
|
||||
</ul>
|
||||
@dispatchEvent('afterMenuClose')
|
||||
|
||||
|
||||
@once
|
||||
@push('scripts')
|
||||
<script>
|
||||
jQuery(document).ready(function () {
|
||||
leantime.menuController.initProjectSelector();
|
||||
leantime.menuController.initLeftMenuHamburgerButton();
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
@endonce
|
||||
Reference in New Issue
Block a user