ghcontributors.html 701 B

12345678910111213141516171819202122232425262728293031
  1. <style type="text/css">
  2. .ghContributors{
  3. display:flex;
  4. flex-flow: wrap;
  5. align-content: flex-start
  6. }
  7. .ghContributors > div{
  8. width: 50% ;
  9. display: inline-flex;
  10. margin-bottom: 5px;
  11. }
  12. .ghContributors > div label{
  13. padding-left: 4px ;
  14. }
  15. .ghContributors > div span{
  16. font-size: x-small;
  17. padding-left: 4px ;
  18. }
  19. </style>
  20. <div class="ghContributors">
  21. {{ $url := .Get 0 }}
  22. {{ range getJSON $url }}
  23. <div>
  24. <img src="{{.avatar_url}}" class="inline" width="32" height="32" style="height: 32px;height: 32px;margin-bottom:.25em; vertical-align:middle; ">
  25. <label><a href="{{.html_url}}">@{{.login}}</a></label>
  26. <span class="contributions">{{.contributions}} commits</span>
  27. </div>
  28. {{ end }}
  29. </div>