OneBot: Leantime 改造版源码(BOM/Univer 表格/AI 接管/品牌替换等)
This commit is contained in:
21
app/Domain/Menu/Templates/projectSelector.blade.php
Normal file
21
app/Domain/Menu/Templates/projectSelector.blade.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<a href="{{ BASE_URL }}/projects/showMy"
|
||||
class="dropdown-toggle bigProjectSelector {{ $menuType == "project" ? "active" : "" }}"
|
||||
data-toggle="dropdown">
|
||||
|
||||
@if ($menuType == 'project' || $menuType == 'default')
|
||||
<span class="projectAvatar {{ $currentProjectType }}">
|
||||
@if(isset($projectTypeAvatars[$currentProjectType]) && $projectTypeAvatars[$currentProjectType] != "avatar")
|
||||
<span class="{{ $projectTypeAvatars[$currentProjectType] }}"></span>
|
||||
@else
|
||||
<img src="{{ BASE_URL }}/api/projects?projectAvatar={{ $currentProject['id'] ?? -1 }}&v={{ format($currentProject['modified'] ?? '')->timestamp() }}"/>
|
||||
@endif
|
||||
</span>
|
||||
{{ $currentProject['name'] ?? "" }}
|
||||
|
||||
@else
|
||||
{!! __('menu.projects') !!}
|
||||
@endif
|
||||
|
||||
<i class="fa fa-caret-down" aria-hidden="true"></i>
|
||||
</a>
|
||||
@include('menu::partials.projectSelector', [])
|
||||
Reference in New Issue
Block a user