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.

dashboard.tmpl 3.4 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
3 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. {{template "base/head" .}}
  2. <div class="dashboard feeds">
  3. {{template "user/dashboard/navbar" .}}
  4. <div class="ui container">
  5. {{template "base/alert" .}}
  6. <div class="ui mobile reversed stackable grid">
  7. <div class="ui container ten wide column">
  8. <div class="default" id = 'default_page' style="display: none;">
  9. <div class="w_title">
  10. {{.i18n.Tr "home.wecome_AI_plt"}}
  11. </div>
  12. <div class="content">
  13. <p class="ui text grey">{{.i18n.Tr "home.explore_AI"}} <a href="{{AppSubUrl}}/explore/repos"> {{.i18n.Tr "home.repositories"}}</a> {{.i18n.Tr "home.or_t"}} <a href="{{AppSubUrl}}/explore/datasets">{{.i18n.Tr "home.datasets"}}</a></p>
  14. <p><span class="ui text grey">{{.i18n.Tr "home.use_plt__fuction"}}</span>&nbsp;<a class="mini ui blue button" href="{{AppSubUrl}}/repo/create{{if .ContextUser.IsOrganization}}?org={{.ContextUser.ID}}{{end}}" >{{.i18n.Tr "repo.create_repo"}}</a></p>
  15. <p class="ui text grey">{{.i18n.Tr "home.provide_resoure"}}</p>
  16. </div>
  17. <div class="guide ">
  18. <a class="mini ui blue basic button" style="font-weight:700" href="https://git.openi.org.cn/zeizei/OpenI_Learning" target="_blank">{{.i18n.Tr "custom.Platform_Tutorial"}} <i class="ri-arrow-right-line" ></i></a>
  19. </div>
  20. </div>
  21. {{if .EnableHeatmap}}
  22. {{template "user/dashboard/heatmap" .}}
  23. {{end}}
  24. {{template "user/dashboard/feeds" .}}
  25. <diV id = "activity_cont" style="display: none;">
  26. <div class="ui placeholder segment bgtask-none padding_none line" >
  27. <div class="act_title" style="padding-left: 0px ;">
  28. {{.i18n.Tr "home.activity"}} :
  29. </div>
  30. <div class="ui icon header bgtask-header-pic"></div>
  31. <p class="p_hint">
  32. {{.i18n.Tr "home.no_events"}}
  33. </p>
  34. </div>
  35. </diV>
  36. </div>
  37. {{template "user/dashboard/repolist" .}}
  38. </div>
  39. </div>
  40. </div>
  41. {{template "base/footer" .}}
  42. <script>
  43. const {AppSubUrl, StaticUrlPrefix, csrf} = window.config;
  44. uid_ = Number((document.querySelector('meta[name=_context_uid]') || {}).content)
  45. // console.log("uid:",uid_)
  46. let URL = AppSubUrl + '/api/v1/repos/search?sort=updated&order=desc&uid='+uid_ +'&q=&page=1&limit=10&mode= ';
  47. $.getJSON(URL, (result, _textStatus, request) => {
  48. const counts_pro = request.getResponseHeader('X-Total-Count');
  49. console.log("count:",counts_pro)
  50. if (counts_pro == 0){
  51. document.getElementById("default_page").style.display = "block";
  52. document.getElementById("activity_cont").style.display = "block"
  53. }
  54. })
  55. </script>
  56. <style>
  57. .default{
  58. background-color: rgba(24, 144, 255, 0.1);
  59. margin-bottom: 20px;
  60. border-radius: 15px;
  61. line-height: 20px;
  62. padding:0px 25px;
  63. }
  64. .w_title{
  65. padding-top: 25px;
  66. margin-bottom: 20px;
  67. color: rgba(16, 16, 16, 100);
  68. font-size: 20px;
  69. text-align: left;
  70. font-weight: 700;
  71. }
  72. .guide{
  73. margin-top:30px;
  74. padding-bottom: 30px;
  75. }
  76. .activity{
  77. margin-top: 20px;
  78. }
  79. .act_title{
  80. color: rgba(16, 16, 16, 100) !important;
  81. font-size: 20px;
  82. text-align: left;
  83. background-color: #fff !important;
  84. font-weight: 700;
  85. }
  86. .p_hint{
  87. color: rgba(136, 136, 136, 100);
  88. font-size: 14px;
  89. text-align: center;
  90. font-family: SourceHanSansSC-regular;
  91. }
  92. .padding_none{
  93. padding: 0px !important;
  94. }
  95. .ui.placeholder.segment {
  96. min-height: 15rem !important;
  97. }
  98. .line{
  99. border-top: 1px solid rgba(187, 187, 187, 0.5) !important;
  100. margin-top: 20px !important;
  101. }
  102. </style>