本站源代码
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.

16 lines
637B

  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}}
  6. {{if eq $key "laugh"}}
  7. :laughing:
  8. {{else}}
  9. :{{$key}}:
  10. {{end}}
  11. {{end}}
  12. {{len $value}}
  13. </a>
  14. {{end}}
  15. {{template "repo/issue/view_content/add_reaction" Dict "ctx" $.ctx "ActionURL" .ActionURL }}
上海开阖软件有限公司 沪ICP备12045867号-1