You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

reactions.tmpl 688B

123456789101112131415
  1. {{range $key, $value := .Reactions}}
  2. <a class="ui label basic{{if $value.HasUser $.ctx.SignedUserID}} blue{{end}}{{if not $.ctx.IsSigned}} disabled{{end}} has-emoji" data-title="{{$value.GetFirstUsers}}{{if gt ($value.GetMoreUserCount) 0}} {{ $.ctx.i18n.Tr "repo.reactions_more" $value.GetMoreUserCount}}{{end}}" data-content="{{ $key }}" data-action-url="{{ $.ActionURL }}">
  3. {{if eq $key "hooray"}}
  4. :tada:
  5. {{else if eq $key "laugh"}}
  6. :laughing:
  7. {{else}}
  8. :{{$key}}:
  9. {{end}}
  10. {{len $value}}
  11. </a>
  12. {{end}}
  13. {{if $.AllowedReactions}}
  14. {{template "repo/issue/view_content/add_reaction" Dict "ctx" $.ctx "ActionURL" .ActionURL "AllowedReactions" $.AllowedReactions}}
  15. {{end}}