mirror of
https://codeberg.org/forgejo/forgejo
synced 2025-09-17 05:52:53 +02:00
Disable the 'clear milestone' button in the issue sidebar when no milestone is set and update this state after a milestone is set or cleared. Fixes #7949 Co-authored-by: Gusted <postmaster@gusted.xyz> Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8266 Reviewed-by: Gusted <gusted@noreply.codeberg.org> Co-authored-by: iamyaash <iamyaash@outlook.com> Co-committed-by: iamyaash <iamyaash@outlook.com>
11 lines
474 B
Go HTML Template
11 lines
474 B
Go HTML Template
<div hx-swap-oob="true" id="selected-milestone" class="ui select-milestone list">
|
|
<span class="no-select item {{if .Issue.Milestone}}tw-hidden{{end}}">{{ctx.Locale.Tr "repo.issues.new.no_milestone"}}</span>
|
|
<div class="selected">
|
|
{{if .Issue.Milestone}}
|
|
<a class="item muted sidebar-item-link" href="{{.RepoLink}}/milestone/{{.Issue.Milestone.ID}}">
|
|
{{svg "octicon-milestone" 18 "tw-mr-2"}}
|
|
{{.Issue.Milestone.Name}}
|
|
</a>
|
|
{{end}}
|
|
</div>
|
|
</div>
|