OneBot: Leantime 改造版源码(BOM/Univer 表格/AI 接管/品牌替换等)
This commit is contained in:
36
app/Domain/Timesheets/Templates/partials/stopwatch.blade.php
Normal file
36
app/Domain/Timesheets/Templates/partials/stopwatch.blade.php
Normal file
@@ -0,0 +1,36 @@
|
||||
@if ($login::userIsAtLeast(\Leantime\Domain\Auth\Models\Roles::$editor, true))
|
||||
|
||||
<li class='timerHeadMenu' id='timerHeadMenu' hx-get="{{BASE_URL}}/timesheets/stopwatch/get-status" hx-trigger="timerUpdate from:body{{ $onTheClock !== false ? ', every 60s' : '' }}" hx-swap="outerHTML">
|
||||
|
||||
@if ($onTheClock !== false)
|
||||
<a
|
||||
href='javascript:void(0);'
|
||||
class='dropdown-toggle'
|
||||
data-toggle='dropdown'
|
||||
>{!! sprintf(
|
||||
__('text.timer_on_todo'),
|
||||
$onTheClock['totalTime'],
|
||||
substr($onTheClock['headline'], 0, 10)
|
||||
) !!}</a>
|
||||
|
||||
<ul class="dropdown-menu">
|
||||
<li>
|
||||
<a href="#/tickets/showTicket/{{ $onTheClock['id'] }}">
|
||||
{!! __('links.view_todo') !!}
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a
|
||||
href="javascript:void(0);"
|
||||
class="punchOut"
|
||||
hx-patch="{{ BASE_URL }}/hx/timesheets/stopwatch/stop-timer/"
|
||||
hx-target="#timerHeadMenu"
|
||||
hx-vals='{"ticketId": "{{ $onTheClock['id'] }}", "action":"stop"}'
|
||||
hx-swap="outerHTML"
|
||||
>{!! __('links.stop_timer') !!}</a>
|
||||
</li>
|
||||
</ul>
|
||||
@endif
|
||||
</li>
|
||||
@endif
|
||||
|
||||
Reference in New Issue
Block a user