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.7 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
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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="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"}}<a class="btn_create" 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="a_guide " href="https://git.openi.org.cn/zeizei/OpenI_Learning" target="_blank">{{.i18n.Tr "custom.Platform_Tutorial"}} <i class="ri-arrow-right-line" style="vertical-align: top;"></i></a>
  19. </div>
  20. </div>
  21. {{if .EnableHeatmap}}
  22. {{template "user/dashboard/heatmap" .}}
  23. {{end}}
  24. {{template "user/dashboard/feeds" .}}
  25. <div class="ui placeholder segment bgtask-none padding_none">
  26. <div class="act_title" style="padding-left: 0px ;">
  27. {{.i18n.Tr "home.activity"}}:
  28. </div>
  29. <div class="ui icon header bgtask-header-pic"></div>
  30. <p class="p_hint">
  31. {{.i18n.Tr "home.no_events"}}
  32. </p>
  33. </div>
  34. </div>
  35. {{template "user/dashboard/repolist" .}}
  36. </div>
  37. </div>
  38. </div>
  39. {{template "base/footer" .}}
  40. <script>
  41. const {AppSubUrl, StaticUrlPrefix, csrf} = window.config;
  42. let URL = AppSubUrl + '/api/v1/repos/search?sort=updated&order=desc&uid=true&q=&page=1&limit=10&mode= ';
  43. $.getJSON(URL, (result, _textStatus, request) => {
  44. const count = request.getResponseHeader('X-Total-Count');
  45. if (count != 0){
  46. document.getElementById("default_page").style.display = "none";
  47. document.getElementById("activity_cont").style.display = "none"
  48. }
  49. })
  50. </script>
  51. <style>
  52. .default{
  53. background-color: rgba(24, 144, 255, 0.1);
  54. margin-bottom: 20px;
  55. border-radius: 15px;
  56. line-height: 20px;
  57. padding:0px 25px;
  58. }
  59. .title{
  60. padding-top: 25px;
  61. color: rgba(16, 16, 16, 100);
  62. font-size: 20px;
  63. text-align: left;
  64. font-family: SourceHanSansSC-medium;
  65. }
  66. .content{
  67. color: rgba(80, 85, 89, 100);
  68. font-size: 14px;
  69. text-align: left;
  70. font-family: SourceHanSansSC-regular;
  71. margin-top: 20px;
  72. }
  73. .btn_create{
  74. border-radius: 4px;
  75. background-color: rgba(24, 144, 255, 100);
  76. color: rgba(255, 255, 255, 100);
  77. font-size: 14px;
  78. text-align: center;
  79. font-family: Microsoft Yahei;
  80. margin-left:5px;
  81. padding:5px
  82. }
  83. .hint{
  84. color: rgba(24, 144, 255, 0.5);
  85. font-size: 14px;
  86. text-align: left;
  87. font-family: SourceHanSansSC-regular;
  88. margin-top: 30px;
  89. }
  90. .guide{
  91. margin-top:30px;
  92. padding-bottom: 30px;
  93. }
  94. .a_guide{
  95. border-radius: 4px;
  96. background-color: rgba(255, 255, 255, 100);
  97. color: rgba(24, 144, 255, 100);
  98. font-size: 14px;
  99. text-align: center;
  100. font-family: Microsoft Yahei;
  101. border: 1px solid rgba(24, 144, 255, 100);
  102. padding: 5px 5px;
  103. vertical-align: middle;
  104. border-radius: 4px;
  105. }
  106. .activity{
  107. margin-top: 20px;
  108. }
  109. .act_title{
  110. color: rgba(16, 16, 16, 100);
  111. font-size: 20px;
  112. text-align: left;
  113. font-family: SourceHanSansSC-medium;
  114. }
  115. .p_hint{
  116. color: rgba(136, 136, 136, 100);
  117. font-size: 14px;
  118. text-align: center;
  119. font-family: SourceHanSansSC-regular;
  120. }
  121. .padding_none{
  122. padding: 0px !important;
  123. }
  124. .content >p{
  125. line-height: 2em !important;
  126. }
  127. </style>