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

organizations.tmpl 17 kB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  1. <link rel="stylesheet" href="/swiper/swiper-bundle.min.css?v={{MD5 AppVer}}">
  2. <link rel="stylesheet" href="/css/git.openi.css?v={{MD5 AppVer}}">
  3. <script src="/swiper/swiper-bundle.min.js?v={{MD5 AppVer}}"></script>
  4. <script src="/self/js/jquery.min.js?v={{MD5 AppVer}}" type="text/javascript"></script>
  5. {{template "base/head" .}}
  6. <div class="explore users">
  7. <!-- {{template "explore/search" .}} -->
  8. <div class="repos--seach">
  9. <div class="ui container">
  10. <div class="ui two column centered grid">
  11. <div class="fourteen wide mobile ten wide tablet ten wide computer column ui form ignore-dirty" >
  12. <div class="ui fluid action input" id="search_all">
  13. <input id = 'value_s' name="q" value="{{.Keyword}}" placeholder="{{.i18n.Tr "explore.search"}}..." onkeydown="if(event.keyCode==13){all_search();}" autofocus>
  14. <input type="hidden" name="tab" value="{{$.TabName}}">
  15. <button class="ui green button" onclick="all_search()">{{.i18n.Tr "explore.search"}}</button>
  16. </div>
  17. </div>
  18. </div>
  19. </div>
  20. </div>
  21. <div class="ui container homeorg">
  22. <div class="ui center aligned header">
  23. <h1 class="title_re">
  24. {{$.i18n.Tr "home.page_recommend_org"}}
  25. </h1>
  26. <p class="re_con"> {{$.i18n.Tr "home.page_recommend_org_desc"}}<a href="{{.RecommendURL}}"> {{$.i18n.Tr "home.page_recommend_org_commit"}}</a></p>
  27. </div>
  28. <div class="sixteen wide tablet sixteen wide computer column">
  29. <div class="homeorg-list" >
  30. <div class="swiper-wrapper" id="recommendorg" style="height:auto">
  31. {{range .RecommendOrgs}}
  32. <div class="swiper-slide">
  33. <a href="{{.HomeLink}}" class= "ui fluid card">
  34. <div class="content">
  35. <div class= "ui small header">
  36. <img class="ui image" src="{{.Avatar}}" >
  37. <div class="content nowrap">
  38. <span class="ui blue"> {{.Name}} </span> {{.FullName}}
  39. <div class="sub header">
  40. <span>
  41. {{.NumRepos}}
  42. {{if le .NumRepos 1}}
  43. {{$.i18n.Tr "org.org_repository"}}
  44. {{else}}
  45. {{$.i18n.Tr "org.org_repositories"}}
  46. {{end}}
  47. </span>
  48. . <span>
  49. {{.NumMembers}}
  50. {{if le .NumRepos 1}}
  51. {{$.i18n.Tr "org.org_member"}}
  52. {{else}}
  53. {{$.i18n.Tr "org.org_members"}}
  54. {{end}}
  55. </span>
  56. .<span>
  57. {{.NumTeams}}
  58. {{if le .NumRepos 1}}
  59. {{$.i18n.Tr "org.org_team"}}
  60. {{else}}
  61. {{$.i18n.Tr "org.org_teams"}}
  62. {{end}}
  63. </span>
  64. </div>
  65. </div>
  66. </div>
  67. </div>
  68. </a>
  69. </div>
  70. {{end}}
  71. </div>
  72. <div class="swiper-pagination"></div>
  73. </div>
  74. </div>
  75. </div>
  76. <div class="ui container homeorg">
  77. <div class="content_top10">
  78. <div class="ui three doubling cards">
  79. <div class="card_list" >
  80. <div class="list_title star_title">
  81. <p class="p_text"> <i class="ri-star-line title_icon"> </i> {{$.i18n.Tr "org.star"}} </p>
  82. </div>
  83. <li style="list-style:none">
  84. {{ range $i,$user :=.StarOrgs}}
  85. <ul class="orgs" style="display: flex;position: relative;">
  86. {{if eq $i 0}}
  87. <li class="wi">
  88. <div class="org_icon">
  89. <svg width="24px" height="24px" viewBox="0 0 32 32" class="contribution-item-img__2-fih"><defs><path id="rank1_svg__a" d="M13.69 20V9.616h-1.598l-3.139 2.61 1.027 1.218 1.95-1.804V20z"></path></defs><g fill="none" fill-rule="evenodd"><path d="M0 0h32v32H0z"></path><g transform="translate(4 2.667)"><path fill="#D16C11" d="M0 0h6.976l5.49 7.642L17.063 0H24L12 16z"></path><circle fill="#F7C049" cx="12" cy="14.667" r="12"></circle><circle fill="#FEE6AD" cx="12" cy="14.667" r="9.333"></circle><g fill-rule="nonzero"><use fill="#FFF" xlink:href="#rank1_svg__a"></use><use fill="#D74D03" xlink:href="#rank1_svg__a"></use></g></g></g></svg>
  90. </div>
  91. </li>
  92. {{else if eq $i 1}}
  93. <li class="wi">
  94. <div class="org_icon">
  95. <svg width="24px" height="24px" viewBox="0 0 32 32" class="contribution-item-img__2-fih"><g transform="translate(4 2.667)" fill="none" fill-rule="evenodd"><path fill="#305269" d="M0 0h6.976l5.49 7.642L17.063 0H24L12 16z"></path><circle fill="#BDD8F0" cx="12" cy="14.667" r="12"></circle><circle fill="#E1E9FC" cx="12" cy="14.667" r="9.333"></circle><path d="M15.817 20v-1.584h-4.81l3.212-2.977c.469-.43.853-.883 1.151-1.357.298-.474.447-1.039.447-1.694 0-.499-.088-.934-.264-1.305a2.525 2.525 0 00-.718-.917 3.169 3.169 0 00-1.064-.543 4.531 4.531 0 00-1.312-.183c-.47 0-.905.064-1.306.19-.4.128-.753.314-1.056.558-.303.244-.55.55-.74.917-.191.366-.306.79-.345 1.268l1.848.147c.059-.43.23-.772.513-1.027.284-.254.646-.381 1.086-.381.205 0 .398.032.579.095.18.064.34.154.477.272a1.262 1.262 0 01.455.997c0 .176-.035.345-.103.506a2.52 2.52 0 01-.257.462 3.476 3.476 0 01-.345.418c-.127.132-.249.257-.366.374l-4.034 3.901V20h6.952z" fill="#305269" fill-rule="nonzero"></path></g></svg>
  96. </div>
  97. </li>
  98. {{else if eq $i 2}}
  99. <li class="wi">
  100. <div class="org_icon">
  101. <svg width="24px" height="24px" viewBox="0 0 32 32" class="contribution-item-img__2-fih"><g transform="translate(4 2.667)" fill="none" fill-rule="evenodd"><path fill="#865B45" d="M0 0h6.976l5.49 7.642L17.063 0H24L12 16z"></path><circle fill="#E7C5AC" cx="12" cy="14.667" r="12"></circle><circle fill="#FEDDC7" cx="12" cy="14.667" r="9.333"></circle><path d="M12.239 20.176c.46 0 .902-.066 1.327-.198.425-.132.8-.328 1.122-.587.323-.259.58-.579.77-.96.19-.382.286-.822.286-1.32 0-.646-.171-1.203-.513-1.672-.343-.47-.846-.753-1.511-.851v-.03c.557-.136.992-.422 1.305-.857.313-.435.47-.932.47-1.489 0-.46-.09-.863-.272-1.21a2.547 2.547 0 00-.726-.865 3.232 3.232 0 00-1.056-.521 4.521 4.521 0 00-1.276-.176 4.52 4.52 0 00-1.1.132 3.404 3.404 0 00-.968.403 2.79 2.79 0 00-.762.697 3.181 3.181 0 00-.499.997l1.863.499c.127-.362.33-.643.608-.843.279-.2.594-.301.946-.301.44 0 .797.127 1.071.381.274.255.41.582.41.983 0 .313-.058.562-.175.748a1.17 1.17 0 01-.462.425 1.903 1.903 0 01-.646.191 6.09 6.09 0 01-.74.044h-.455v1.584h.425c.264 0 .533.02.807.059.274.039.52.115.74.227.22.112.402.274.543.484.142.21.213.482.213.814a1.533 1.533 0 01-.52 1.18 1.772 1.772 0 01-.558.33 1.88 1.88 0 01-.667.118c-.47 0-.841-.117-1.115-.352s-.464-.567-.572-.997l-1.877.498c.117.43.288.8.513 1.108.225.308.491.56.8.755.307.196.652.34 1.033.433a5.13 5.13 0 001.218.139z" fill="#865B45" fill-rule="nonzero"></path></g></svg>
  102. </div>
  103. </li>
  104. {{else }}
  105. <li class="wi">
  106. <div class="org_icon" >
  107. {{Add $i 1}}
  108. </div>
  109. </li>
  110. {{end}}
  111. <li class="li_avatar">
  112. <img class="ui avatar image" src="{{$user.RelAvatarLink}}" >
  113. </li>
  114. <li class="li_name">
  115. <a class="org_line_hight re_style nowrap" href="{{$user.HomeLink}}">{{$user.Name}}</a>
  116. </li>
  117. <ul class = 'score'>
  118. <li class="li_score" >
  119. <i class="ri-star-line org_line_hight org_icon_color"></i> &nbsp;<p class="p_score">{{$user.Score}}</p>
  120. </li>
  121. </ul>
  122. </ul>
  123. {{end}}
  124. </li>
  125. </div>
  126. <div class="card_list" >
  127. <div class="list_title memb_title">
  128. <p class="p_text"> <i class="ri-user-2-line title_icon"> </i> {{$.i18n.Tr "org.member"}} </p>
  129. </div>
  130. <li style="list-style:none">
  131. {{ range $i,$user :=.MemberOrgs}}
  132. <ul class="orgs" style="display: flex;;position: relative;">
  133. {{if eq $i 0}}
  134. <li class="wi">
  135. <div class="org_icon">
  136. <svg width="24px" height="24px" viewBox="0 0 32 32" class="contribution-item-img__2-fih"><defs><path id="rank1_svg__a" d="M13.69 20V9.616h-1.598l-3.139 2.61 1.027 1.218 1.95-1.804V20z"></path></defs><g fill="none" fill-rule="evenodd"><path d="M0 0h32v32H0z"></path><g transform="translate(4 2.667)"><path fill="#D16C11" d="M0 0h6.976l5.49 7.642L17.063 0H24L12 16z"></path><circle fill="#F7C049" cx="12" cy="14.667" r="12"></circle><circle fill="#FEE6AD" cx="12" cy="14.667" r="9.333"></circle><g fill-rule="nonzero"><use fill="#FFF" xlink:href="#rank1_svg__a"></use><use fill="#D74D03" xlink:href="#rank1_svg__a"></use></g></g></g></svg>
  137. </div>
  138. </li>
  139. {{else if eq $i 1}}
  140. <li class="wi">
  141. <div class="org_icon">
  142. <svg width="24px" height="24px" viewBox="0 0 32 32" class="contribution-item-img__2-fih"><g transform="translate(4 2.667)" fill="none" fill-rule="evenodd"><path fill="#305269" d="M0 0h6.976l5.49 7.642L17.063 0H24L12 16z"></path><circle fill="#BDD8F0" cx="12" cy="14.667" r="12"></circle><circle fill="#E1E9FC" cx="12" cy="14.667" r="9.333"></circle><path d="M15.817 20v-1.584h-4.81l3.212-2.977c.469-.43.853-.883 1.151-1.357.298-.474.447-1.039.447-1.694 0-.499-.088-.934-.264-1.305a2.525 2.525 0 00-.718-.917 3.169 3.169 0 00-1.064-.543 4.531 4.531 0 00-1.312-.183c-.47 0-.905.064-1.306.19-.4.128-.753.314-1.056.558-.303.244-.55.55-.74.917-.191.366-.306.79-.345 1.268l1.848.147c.059-.43.23-.772.513-1.027.284-.254.646-.381 1.086-.381.205 0 .398.032.579.095.18.064.34.154.477.272a1.262 1.262 0 01.455.997c0 .176-.035.345-.103.506a2.52 2.52 0 01-.257.462 3.476 3.476 0 01-.345.418c-.127.132-.249.257-.366.374l-4.034 3.901V20h6.952z" fill="#305269" fill-rule="nonzero"></path></g></svg>
  143. </div>
  144. </li>
  145. {{else if eq $i 2}}
  146. <li class="wi">
  147. <div class="org_icon">
  148. <svg width="24px" height="24px" viewBox="0 0 32 32" class="contribution-item-img__2-fih"><g transform="translate(4 2.667)" fill="none" fill-rule="evenodd"><path fill="#865B45" d="M0 0h6.976l5.49 7.642L17.063 0H24L12 16z"></path><circle fill="#E7C5AC" cx="12" cy="14.667" r="12"></circle><circle fill="#FEDDC7" cx="12" cy="14.667" r="9.333"></circle><path d="M12.239 20.176c.46 0 .902-.066 1.327-.198.425-.132.8-.328 1.122-.587.323-.259.58-.579.77-.96.19-.382.286-.822.286-1.32 0-.646-.171-1.203-.513-1.672-.343-.47-.846-.753-1.511-.851v-.03c.557-.136.992-.422 1.305-.857.313-.435.47-.932.47-1.489 0-.46-.09-.863-.272-1.21a2.547 2.547 0 00-.726-.865 3.232 3.232 0 00-1.056-.521 4.521 4.521 0 00-1.276-.176 4.52 4.52 0 00-1.1.132 3.404 3.404 0 00-.968.403 2.79 2.79 0 00-.762.697 3.181 3.181 0 00-.499.997l1.863.499c.127-.362.33-.643.608-.843.279-.2.594-.301.946-.301.44 0 .797.127 1.071.381.274.255.41.582.41.983 0 .313-.058.562-.175.748a1.17 1.17 0 01-.462.425 1.903 1.903 0 01-.646.191 6.09 6.09 0 01-.74.044h-.455v1.584h.425c.264 0 .533.02.807.059.274.039.52.115.74.227.22.112.402.274.543.484.142.21.213.482.213.814a1.533 1.533 0 01-.52 1.18 1.772 1.772 0 01-.558.33 1.88 1.88 0 01-.667.118c-.47 0-.841-.117-1.115-.352s-.464-.567-.572-.997l-1.877.498c.117.43.288.8.513 1.108.225.308.491.56.8.755.307.196.652.34 1.033.433a5.13 5.13 0 001.218.139z" fill="#865B45" fill-rule="nonzero"></path></g></svg>
  149. </div>
  150. </li>
  151. {{else }}
  152. <li class="wi">
  153. <div class="org_icon" >
  154. {{Add $i 1}}
  155. </div>
  156. </li>
  157. {{end}}
  158. <li class="li_avatar">
  159. <img class="ui avatar image" src="{{$user.RelAvatarLink}}" >
  160. </li>
  161. <li class="li_name">
  162. <a class="org_line_hight re_style nowrap" href="{{$user.HomeLink}}">{{$user.Name}}</a>
  163. </li>
  164. <ul class = 'score'>
  165. <li class="li_score">
  166. <i class="ri-user-2-line org_line_hight org_icon_color"></i> &nbsp;<p class="p_score">{{$user.Score}}</p>
  167. </li>
  168. </ul>
  169. </ul>
  170. {{end}}
  171. </li>
  172. </div>
  173. <div class="card_list" >
  174. <div class="list_title act_title">
  175. <p class="p_text"> <i class="ri-blaze-fill title_icon"> </i> {{$.i18n.Tr "org.active"}} </p>
  176. </div>
  177. <li style="list-style:none">
  178. {{ range $i,$user :=.ActiveOrgs }}
  179. <ul class="orgs" style="display: flex;position: relative;">
  180. {{if eq $i 0}}
  181. <li class="wi">
  182. <div class="org_icon">
  183. <svg width="24px" height="24px" viewBox="0 0 32 32" class="contribution-item-img__2-fih"><defs><path id="rank1_svg__a" d="M13.69 20V9.616h-1.598l-3.139 2.61 1.027 1.218 1.95-1.804V20z"></path></defs><g fill="none" fill-rule="evenodd"><path d="M0 0h32v32H0z"></path><g transform="translate(4 2.667)"><path fill="#D16C11" d="M0 0h6.976l5.49 7.642L17.063 0H24L12 16z"></path><circle fill="#F7C049" cx="12" cy="14.667" r="12"></circle><circle fill="#FEE6AD" cx="12" cy="14.667" r="9.333"></circle><g fill-rule="nonzero"><use fill="#FFF" xlink:href="#rank1_svg__a"></use><use fill="#D74D03" xlink:href="#rank1_svg__a"></use></g></g></g></svg>
  184. </div>
  185. </li>
  186. {{else if eq $i 1}}
  187. <li class="wi">
  188. <div class="org_icon">
  189. <svg width="24px" height="24px" viewBox="0 0 32 32" class="contribution-item-img__2-fih"><g transform="translate(4 2.667)" fill="none" fill-rule="evenodd"><path fill="#305269" d="M0 0h6.976l5.49 7.642L17.063 0H24L12 16z"></path><circle fill="#BDD8F0" cx="12" cy="14.667" r="12"></circle><circle fill="#E1E9FC" cx="12" cy="14.667" r="9.333"></circle><path d="M15.817 20v-1.584h-4.81l3.212-2.977c.469-.43.853-.883 1.151-1.357.298-.474.447-1.039.447-1.694 0-.499-.088-.934-.264-1.305a2.525 2.525 0 00-.718-.917 3.169 3.169 0 00-1.064-.543 4.531 4.531 0 00-1.312-.183c-.47 0-.905.064-1.306.19-.4.128-.753.314-1.056.558-.303.244-.55.55-.74.917-.191.366-.306.79-.345 1.268l1.848.147c.059-.43.23-.772.513-1.027.284-.254.646-.381 1.086-.381.205 0 .398.032.579.095.18.064.34.154.477.272a1.262 1.262 0 01.455.997c0 .176-.035.345-.103.506a2.52 2.52 0 01-.257.462 3.476 3.476 0 01-.345.418c-.127.132-.249.257-.366.374l-4.034 3.901V20h6.952z" fill="#305269" fill-rule="nonzero"></path></g></svg>
  190. </div>
  191. </li>
  192. {{else if eq $i 2}}
  193. <li class="wi">
  194. <div class="org_icon">
  195. <svg width="24px" height="24px" viewBox="0 0 32 32" class="contribution-item-img__2-fih"><g transform="translate(4 2.667)" fill="none" fill-rule="evenodd"><path fill="#865B45" d="M0 0h6.976l5.49 7.642L17.063 0H24L12 16z"></path><circle fill="#E7C5AC" cx="12" cy="14.667" r="12"></circle><circle fill="#FEDDC7" cx="12" cy="14.667" r="9.333"></circle><path d="M12.239 20.176c.46 0 .902-.066 1.327-.198.425-.132.8-.328 1.122-.587.323-.259.58-.579.77-.96.19-.382.286-.822.286-1.32 0-.646-.171-1.203-.513-1.672-.343-.47-.846-.753-1.511-.851v-.03c.557-.136.992-.422 1.305-.857.313-.435.47-.932.47-1.489 0-.46-.09-.863-.272-1.21a2.547 2.547 0 00-.726-.865 3.232 3.232 0 00-1.056-.521 4.521 4.521 0 00-1.276-.176 4.52 4.52 0 00-1.1.132 3.404 3.404 0 00-.968.403 2.79 2.79 0 00-.762.697 3.181 3.181 0 00-.499.997l1.863.499c.127-.362.33-.643.608-.843.279-.2.594-.301.946-.301.44 0 .797.127 1.071.381.274.255.41.582.41.983 0 .313-.058.562-.175.748a1.17 1.17 0 01-.462.425 1.903 1.903 0 01-.646.191 6.09 6.09 0 01-.74.044h-.455v1.584h.425c.264 0 .533.02.807.059.274.039.52.115.74.227.22.112.402.274.543.484.142.21.213.482.213.814a1.533 1.533 0 01-.52 1.18 1.772 1.772 0 01-.558.33 1.88 1.88 0 01-.667.118c-.47 0-.841-.117-1.115-.352s-.464-.567-.572-.997l-1.877.498c.117.43.288.8.513 1.108.225.308.491.56.8.755.307.196.652.34 1.033.433a5.13 5.13 0 001.218.139z" fill="#865B45" fill-rule="nonzero"></path></g></svg>
  196. </div>
  197. </li>
  198. {{else }}
  199. <li class="wi">
  200. <div class="org_icon ">
  201. {{Add $i 1}}
  202. </div>
  203. </li>
  204. {{end}}
  205. <li class="li_avatar">
  206. <img class="ui avatar image" src="{{$user.RelAvatarLink}}" >
  207. </li>
  208. <li class="li_name">
  209. <a class="org_line_hight re_style nowrap" href="{{$user.HomeLink}}">{{$user.Name}}</a>
  210. </li>
  211. </ul>
  212. {{end}}
  213. </li>
  214. </div>
  215. </div>
  216. </div>
  217. </div>
  218. </div>
  219. {{template "base/footer" .}}
  220. <script>
  221. function all_search(){
  222. var inputValue = document.getElementById("value_s").value;
  223. console.log("Keyword",inputValue)
  224. sessionStorage.setItem("keyword",inputValue);
  225. sessionStorage.setItem("tableName","org");
  226. sessionStorage.setItem("specifySearch",true);
  227. sessionStorage.setItem("sortBy","default");
  228. sessionStorage.setItem("ascending","false");
  229. window.open("/all/search/");
  230. }
  231. window.onload = function() {
  232. var swiperOrg = new Swiper(".homeorg-list", {
  233. slidesPerView: 1,
  234. slidesPerColumn: 3,
  235. slidesPerColumnFill:'row',
  236. spaceBetween: 15,
  237. pagination: {
  238. el: ".swiper-pagination",
  239. clickable: true,
  240. },
  241. autoplay: {
  242. delay: 4500,
  243. disableOnInteraction: false,
  244. },
  245. breakpoints: {
  246. 768: {
  247. slidesPerView: 3,
  248. },
  249. 1024: {
  250. slidesPerView: 4,
  251. },
  252. },
  253. });
  254. }
  255. </script>
  256. <style>
  257. </style>