gitea源码

12345678910111213141516
  1. {{if .Permission.CanRead ctx.Consts.RepoUnitTypeCode}}
  2. <div id="repo-contributors-chart"
  3. data-repo-link="{{.RepoLink}}"
  4. data-repo-default-branch-name="{{.Repository.DefaultBranch}}"
  5. data-locale-filter-label="{{ctx.Locale.Tr "repo.contributors.contribution_type.filter_label"}}"
  6. data-locale-contribution-type-commits="{{ctx.Locale.Tr "repo.contributors.contribution_type.commits"}}"
  7. data-locale-contribution-type-additions="{{ctx.Locale.Tr "repo.contributors.contribution_type.additions"}}"
  8. data-locale-contribution-type-deletions="{{ctx.Locale.Tr "repo.contributors.contribution_type.deletions"}}"
  9. data-locale-loading-title="{{ctx.Locale.Tr "graphs.component_loading" (ctx.Locale.Tr "graphs.contributors.what")}}"
  10. data-locale-loading-title-failed="{{ctx.Locale.Tr "graphs.component_loading_failed" (ctx.Locale.Tr "graphs.contributors.what")}}"
  11. data-locale-loading-info="{{ctx.Locale.Tr "graphs.component_loading_info"}}"
  12. data-locale-component-failed-to-load="{{ctx.Locale.Tr "graphs.component_failed_to_load"}}"
  13. >
  14. </div>
  15. {{end}}