Split watching

This commit is contained in:
Otto Richter 2024-04-24 23:03:47 +02:00
parent dfaeb4692c
commit 35c967653b
2 changed files with 8 additions and 6 deletions

View file

@ -27,13 +27,9 @@
{{if and $.IssueWatch (not .Repository.IsArchived)}}
<div class="divider"></div>
<div class="ui watching">
<span class="text"><strong>{{ctx.Locale.Tr "notification.notifications"}}</strong></span>
<div class="tw-mt-2">
{{template "repo/issue/view_content/watching" .}}
</div>
</div>
{{template "repo/issue/view_content/sidebar/watch" .}}
{{end}}
{{if .Repository.IsTimetrackerEnabled $.Context}}
{{if and .CanUseTimetracker (not .Repository.IsArchived)}}
<div class="divider"></div>

View file

@ -0,0 +1,6 @@
<div class="ui watching">
<span class="text"><strong>{{ctx.Locale.Tr "notification.notifications"}}</strong></span>
<div class="tw-mt-2">
{{template "repo/issue/view_content/watching" .}}
</div>
</div>