Files
Leantime/app/Domain/Menu/Templates/projectSelector.blade.php
wangruiguo d647428529
Some checks failed
Security Audit / Composer Security Audit (push) Has been cancelled
Security Audit / NPM Security Audit (push) Has been cancelled
Security Audit / CodeQL Analysis (push) Has been cancelled
OneBot: Leantime 改造版源码(BOM/Univer 表格/AI 接管/品牌替换等)
2026-09-03 18:49:20 +08:00

22 lines
921 B
PHP

<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'] ?? "" }}&nbsp;
@else
{!! __('menu.projects') !!}
@endif
<i class="fa fa-caret-down" aria-hidden="true"></i>
</a>
@include('menu::partials.projectSelector', [])