mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-08-08 03:15:23 +02:00
Add watch button on issue
This commit is contained in:
parent
a0d0de7233
commit
b674460748
6 changed files with 111 additions and 0 deletions
|
@ -98,5 +98,24 @@
|
|||
{{end}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="ui divider"></div>
|
||||
|
||||
<div class="ui watching">
|
||||
<span class="text"><strong>{{.i18n.Tr "repo.issues.watch"}}</strong></span>
|
||||
<div>
|
||||
<form method="POST" action="{{$.RepoLink}}/issues/{{.Issue.Index}}/watch">
|
||||
<input type="hidden" name="watch" value="{{if $.IssueWatch.IsWatching}}0{{else}}1{{end}}" />
|
||||
{{$.CsrfTokenHtml}}
|
||||
<button class="fluid ui button">
|
||||
{{if $.IssueWatch.IsWatching}}
|
||||
{{.i18n.Tr "repo.issues.unwatch_issue"}}
|
||||
{{else}}
|
||||
{{.i18n.Tr "repo.issues.watch_issue"}}
|
||||
{{end}}
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue