{{$isIgnoring := and $.IsSigned $.RepoWatch.IsIgnoring}} {{$buttonText := ctx.Locale.Tr (Iif $isIgnoring "repo.ignoring" (Iif $.RepoWatch.IsWatching "repo.watching" "repo.watch"))}} {{$count := CountFmt .Repository.NumWatches}}
{{if $.IsSigned}} {{$mode := $.RepoWatch.SelectedMode}} {{$isAll := eq $mode "all"}} {{$isCustom := eq $mode "custom"}} {{$isParticipating := eq $mode "participate"}}
{{$testParticipating := ctx.Locale.Tr "repo.watch.mode.participating"}} {{svg "octicon-check" 16 (Iif $isParticipating "" "tw-invisible")}}
{{$testParticipating}}
{{ctx.Locale.Tr "repo.watch.mode.participating.desc"}}
{{$textAll := ctx.Locale.Tr "repo.watch.mode.all"}} {{svg "octicon-check" 16 (Iif $isAll "" "tw-invisible")}}
{{$textAll}}
{{ctx.Locale.Tr "repo.watch.mode.all.desc"}}
{{$textIgnore := ctx.Locale.Tr "repo.watch.mode.ignore"}} {{svg "octicon-check" 16 (Iif $isIgnoring "" "tw-invisible")}}
{{$textIgnore}}
{{ctx.Locale.Tr "repo.watch.mode.ignore.desc"}}
{{$textCustom := ctx.Locale.Tr "repo.watch.mode.custom"}} {{svg "octicon-check" 16 (Iif $isCustom "" "tw-invisible")}}
{{$textCustom}}
{{ctx.Locale.Tr "repo.watch.mode.custom.desc"}}
{{else}} {{svg "octicon-eye"}} {{$count}} {{end}}