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
3 years ago
3 years ago
3 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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'>
  9. <div class="w_title">
  10. {{.i18n.Tr "home.wecome_AI_plt"}}
  11. </div>
  12. <div class="content">
  13. <p >{{.i18n.Tr "home.explore_AI"}} <a href="{{AppSubUrl}}/explore/repos"> {{.i18n.Tr "home.repositories"}}</a> 或 <a href="{{AppSubUrl}}/explore/datasets">{{.i18n.Tr "home.datasets"}}</a></p>
  14. <p >{{.i18n.Tr "home.use_plt__fuction"}}&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 > {{.i18n.Tr "home.provide_resoure"}}</p>
  16. </div>
  17. <div class="guide ">
  18. <a class="mini ui blue basic button " 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">
  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 = "none";
  52. document.getElementById("activity_cont").style.display = "none"
  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. color: rgba(16, 16, 16, 100);
  67. font-size: 20px;
  68. text-align: left;
  69. font-weight: 700;
  70. }
  71. .content{
  72. color: rgba(80, 85, 89, 100);
  73. font-size: 14px;
  74. text-align: left;
  75. font-family: SourceHanSansSC-regular;
  76. margin-top: 20px;
  77. }
  78. .guide{
  79. margin-top:30px;
  80. padding-bottom: 30px;
  81. }
  82. .activity{
  83. margin-top: 20px;
  84. }
  85. .act_title{
  86. color: rgba(16, 16, 16, 100) !important;
  87. font-size: 20px;
  88. text-align: left;
  89. font-family: SourceHanSansSC-medium;
  90. background-color: #fff !important;
  91. }
  92. .p_hint{
  93. color: rgba(136, 136, 136, 100);
  94. font-size: 14px;
  95. text-align: center;
  96. font-family: SourceHanSansSC-regular;
  97. }
  98. .padding_none{
  99. padding: 0px !important;
  100. }
  101. .ui.placeholder.segment {
  102. min-height: 15rem !important;
  103. }
  104. .line{
  105. border-top: 1px solid rgba(187, 187, 187, 0.5) !important;
  106. margin-top: 20px !important;
  107. }
  108. </style>