profile.tmpl 1.3 KiB

6 years ago
1234567891011121314151617181920212223242526272829303132333435363738
  1. {{template "base/head" .}}
  2. <div class="user profile">
  3. <div class="ui container">
  4. <div class="ui stackable grid">
  5. <div class="ui eleven wide centered column">
  6. <div class="ui secondary stackable pointing menu">
  7. <a class='{{if ne .TabName "activity"}}active{{end}} item' href="{{.Owner.HomeLink}}">
  8. {{svg "octicon-repo" 16}} {{.i18n.Tr "user.repositories"}}
  9. </a>
  10. <a class='{{if eq .TabName "activity"}}active{{end}} item' href="{{.Owner.HomeLink}}?tab=activity">
  11. {{svg "octicon-rss" 16}} Recent Activity
  12. </a>
  13. </div>
  14. {{if eq .TabName "activity"}}
  15. {{if .EnableHeatmap}}
  16. <div id="user-heatmap" style="padding-right: 40px">
  17. <activity-heatmap :locale="locale" :suburl="suburl" :user="heatmapUser">
  18. <div slot="loading">
  19. <div class="ui active centered inline indeterminate text loader" id="loading-heatmap">{{.i18n.Tr "user.heatmap.loading"}}</div>
  20. </div>
  21. </activity-heatmap>
  22. </div>
  23. <div class="ui divider"></div>
  24. {{end}}
  25. <div class="feeds">
  26. {{template "user/dashboard/feeds" .}}
  27. </div>
  28. {{else}}
  29. {{template "explore/repo_search" .}}
  30. {{template "explore/repo_list" .}}
  31. {{template "base/paginate" .}}
  32. {{end}}
  33. </div>
  34. </div>
  35. </div>
  36. </div>
  37. {{template "base/footer" .}}