summaryrefslogtreecommitdiffstats
path: root/templates/repo
diff options
context:
space:
mode:
authorAndrey Nering <andrey.nering@gmail.com>2017-04-01 15:12:24 -0300
committerGitHub <noreply@github.com>2017-04-01 15:12:24 -0300
commit37a34c1a28c1a49e00adfef751b44de2f1b84d4b (patch)
treed47958e8e7de22bb32c1cff28d19b819653233bd /templates/repo
parent88112a53249077adf26e5200f723faa1570641e6 (diff)
parentf6e5ce65b28fb6c97d9011c1fbf2950acf7c0647 (diff)
downloadgitea-37a34c1a28c1a49e00adfef751b44de2f1b84d4b.tar.gz
gitea-37a34c1a28c1a49e00adfef751b44de2f1b84d4b.zip
Merge pull request #1410 from andreynering/notification/issue-watch
[Notifications Step 6] Per issue/PR watch/unwatch
Diffstat (limited to 'templates/repo')
-rw-r--r--templates/repo/issue/view_content/sidebar.tmpl21
1 files changed, 21 insertions, 0 deletions
diff --git a/templates/repo/issue/view_content/sidebar.tmpl b/templates/repo/issue/view_content/sidebar.tmpl
index ea46e5f94d..28bd755e41 100644
--- a/templates/repo/issue/view_content/sidebar.tmpl
+++ b/templates/repo/issue/view_content/sidebar.tmpl
@@ -98,5 +98,26 @@
{{end}}
</div>
</div>
+
+ <div class="ui divider"></div>
+
+ <div class="ui watching">
+ <span class="text"><strong>{{.i18n.Tr "notification.notifications"}}</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}}
+ <i class="octicon octicon-mute"></i>
+ {{.i18n.Tr "repo.issues.unsubscribe"}}
+ {{else}}
+ <i class="octicon octicon-unmute"></i>
+ {{.i18n.Tr "repo.issues.subscribe"}}
+ {{end}}
+ </button>
+ </form>
+ </div>
+ </div>
</div>
</div>