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.

show.tmpl 20 kB

3 years ago
3 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473
  1. {{template "base/head" .}}
  2. <style>
  3. .according-panel-heading{
  4. box-sizing: border-box;
  5. padding: 8px 16px;
  6. color: #252b3a;
  7. background-color: #f2f5fc;
  8. line-height: 1.5;
  9. cursor: pointer;
  10. -moz-user-select: none;
  11. -webkit-user-select: none;
  12. -ms-user-select: none;
  13. -khtml-user-select: none;
  14. user-select: none;
  15. }
  16. .accordion-panel-title {
  17. margin-top: 0;
  18. margin-bottom: 0;
  19. color: #252b3a;
  20. }
  21. .accordion-panel-title-content{
  22. vertical-align: middle;
  23. display: inline-block;
  24. width: calc(100% - 32px);
  25. cursor: default;
  26. }
  27. .acc-margin-bottom {
  28. margin-bottom: 5px;
  29. }
  30. .title_text {
  31. font-size: 12px;
  32. }
  33. .ac-display-inblock {
  34. display: inline-block;
  35. }
  36. .cti-mgRight-sm {
  37. margin-right: 8px;
  38. }
  39. .ac-text-normal {
  40. font-size: 14px;
  41. color: #575d6c;
  42. }
  43. .uc-accordionTitle-black {
  44. color: #333;
  45. }
  46. .accordion-border{
  47. border:1px solid #cce2ff;
  48. }
  49. .padding0{
  50. padding: 0 !important;
  51. }
  52. .content-pad{
  53. padding: 15px 35px;
  54. }
  55. .content-margin{
  56. margin:10px 5px ;
  57. }
  58. .tab_2_content {
  59. min-height: 460px;
  60. margin-left: 10px;
  61. }
  62. .ac-grid {
  63. display: block;
  64. *zoom: 1;
  65. }
  66. .ac-grid-col {
  67. float: left;
  68. width: 100%;
  69. }
  70. .ac-grid-col2 .ac-grid-col {
  71. width: 50%;
  72. }
  73. .ti-form {
  74. text-align: left;
  75. max-width: 100%;
  76. vertical-align: middle;
  77. }
  78. .ti-form>tbody {
  79. font-size: 12px;
  80. }
  81. .ti-form>tbody, .ti-form>tbody>tr {
  82. vertical-align: inherit;
  83. }
  84. .info_text {
  85. padding-bottom: 20px;
  86. padding-right: 20px;
  87. font-size: 12px;
  88. }
  89. .ti-text-form-label {
  90. padding-bottom: 20px;
  91. padding-right: 20px;
  92. color: #8a8e99;
  93. font-size: 12px;
  94. white-space: nowrap !important;
  95. width: 80px;
  96. line-height: 30px;
  97. }
  98. .ti-text-form-content{
  99. line-height: 30px;
  100. padding-bottom: 20px;
  101. }
  102. .ti-text-form-contentline60{
  103. line-height: 60px;
  104. padding-bottom: 20px;
  105. }
  106. .ti-form>tbody>tr>td {
  107. vertical-align: top;
  108. white-space: normal;
  109. }
  110. td, th {
  111. padding: 0;
  112. }
  113. .ac-grid-col .text-span {
  114. width: 450px;
  115. overflow: hidden;
  116. text-overflow: ellipsis;
  117. white-space: nowrap;
  118. }
  119. .text-span-new {
  120. width: 800px;
  121. overflow: hidden;
  122. text-overflow: ellipsis;
  123. height: 120px;
  124. word-break: break-all;
  125. }
  126. .redo-color{
  127. color: #3291F8;
  128. }
  129. .ti-action-menu-item:not(:last-child){
  130. margin-right: 10px;
  131. padding-right: 11px;
  132. text-decoration: none!important;
  133. color: #526ecc;
  134. cursor: pointer;
  135. display: inline-block;
  136. -moz-user-select: none;
  137. -webkit-user-select: none;
  138. -ms-user-select: none;
  139. -khtml-user-select: none;
  140. user-select: none;
  141. position: relative;
  142. }
  143. .ti-action-menu-item:not(:last-child):after {
  144. content: "";
  145. display: inline-block;
  146. position: absolute;
  147. height: 12px;
  148. right: 0;
  149. top: 50%;
  150. -webkit-transform: translateY(-6px);
  151. -ms-transform: translateY(-6px);
  152. -o-transform: translateY(-6px);
  153. transform: translateY(-6px);
  154. border-right: 1px solid #dfe1e6;
  155. }
  156. .text-width80{
  157. width: 100px;
  158. line-height: 30px;
  159. }
  160. .border-according{
  161. border: 1px solid #dfe1e6;
  162. }
  163. .disabled {
  164. cursor: default;
  165. pointer-events: none;
  166. color: rgba(0,0,0,.6) !important;
  167. opacity: .45 !important;
  168. }
  169. .pad20{
  170. border:0px !important;
  171. }
  172. .model_file_bread{
  173. margin-bottom: -0.5rem !important;
  174. padding-left: 1rem;
  175. padding-top: 0.5rem ;
  176. }
  177. </style>
  178. <div id="mask">
  179. <div id="loadingPage">
  180. <div class="rect1"></div>
  181. <div class="rect2"></div>
  182. <div class="rect3"></div>
  183. <div class="rect4"></div>
  184. <div class="rect5"></div>
  185. </div>
  186. </div>
  187. <div class="repository">
  188. {{template "repo/header" .}}
  189. <div class="ui container">
  190. <h4 class="ui header" id="vertical-segment">
  191. <div class="ui breadcrumb">
  192. <a class="section" href="{{.RepoLink}}/debugjob?debugListType=all">
  193. {{.i18n.Tr "repo.cloudbrain"}}
  194. </a>
  195. <div class="divider"> / </div>
  196. <a class="section backTodeBug" href="{{.RepoLink}}/debugjob?debugListType={{if eq $.debugListType "NPU"}}NPU{{else if eq $.debugListType "CPU/GPU"}}CPU/GPU{{else}}all{{end}}">
  197. {{$.i18n.Tr "repo.modelarts.notebook"}}
  198. </a>
  199. <div class="divider"> / </div>
  200. {{with .task}}
  201. <div class="active section">{{.DisplayJobName}}</div>
  202. {{end}}
  203. </div>
  204. </h4>
  205. {{with .task}}
  206. <div class="ui accordion border-according" id="accordion" data-repopath="" data-jobid="" data-version="">
  207. <div class="active title padding0">
  208. <div class="according-panel-heading">
  209. <div class="accordion-panel-title">
  210. <i class="dropdown icon"></i>
  211. <span class="accordion-panel-title-content">
  212. <span>
  213. <div class="ac-display-inblock title_text acc-margin-bottom">
  214. <span class="cti-mgRight-sm">
  215. {{if not (eq .StartTime 0)}}
  216. <td>{{TimeSinceUnix1 .StartTime}}</td>
  217. {{else}}
  218. <td>{{TimeSinceUnix1 .CreatedUnix}}<td>
  219. {{end}}
  220. </span>
  221. <span class="cti-mgRight-sm">{{$.i18n.Tr "repo.modelarts.status"}}:
  222. <span id="{{.VersionName}}-status-span"><i id="icon" style="vertical-align: middle;" class="{{.Status}}"></i><span id="text" style="margin-left: 0.4em;font-size: 12px;">{{.Status}}</span></span>
  223. </span>
  224. <span class="cti-mgRight-sm">{{$.i18n.Tr "repo.modelarts.train_job.dura_time"}}:</span>
  225. <span class="cti-mgRight-sm uc-accordionTitle-black" id="{{.VersionName}}-duration-span">{{$.duration}}</span>
  226. </div>
  227. </span>
  228. </span>
  229. </div>
  230. </div>
  231. </div>
  232. <div class="active content">
  233. <div class="content-pad">
  234. <div class="ui pointing secondary menu" style="border-bottom: 1px solid rgba(34,36,38,.15);">
  235. <a class="active item" data-tab="first">{{$.i18n.Tr "repo.modelarts.train_job.config"}}</a>
  236. </div>
  237. <div class="ui tab active" data-tab="first">
  238. <div style="padding-top: 10px;">
  239. <div class="tab_2_content">
  240. <div class="ac-grid ac-grid-col2">
  241. <div class="ac-grid-col">
  242. <table class="ti-form">
  243. <tbody class="ti-text-form">
  244. <tr class="ti-no-ng-animate">
  245. <td class="ti-no-ng-animate ti-text-form-label text-width80">
  246. {{$.i18n.Tr "repo.cloudbrain_task"}}
  247. </td>
  248. <td class="ti-text-form-content">
  249. <div class="text-span text-span-w">
  250. {{.DisplayJobName}}
  251. </div>
  252. </td>
  253. </tr>
  254. <tr class="ti-no-ng-animate">
  255. <td class="ti-no-ng-animate ti-text-form-label text-width80">
  256. {{$.i18n.Tr "repo.modelarts.status"}}
  257. </td>
  258. <td class="ti-text-form-content">
  259. <div class="text-span text-span-w" id="{{.VersionName}}-status">
  260. {{.Status}}
  261. </div>
  262. </td>
  263. </tr>
  264. <tr class="ti-no-ng-animate">
  265. <td class="ti-no-ng-animate ti-text-form-label text-width80">
  266. {{$.i18n.Tr "repo.cloudbrain_creator"}}
  267. </td>
  268. <td class="ti-text-form-content">
  269. <div class="text-span text-span-w" id="{{.VersionName}}-mirror">
  270. {{.User.Name}}
  271. </div>
  272. </td>
  273. </tr>
  274. <tr class="ti-no-ng-animate">
  275. <td class="ti-no-ng-animate ti-text-form-label text-width80">
  276. {{$.i18n.Tr "repo.modelarts.computing_resources"}}
  277. </td>
  278. <td class="ti-text-form-content">
  279. <div class="text-span text-span-w" id="{{.VersionName}}-computeresource">
  280. {{.ComputeResource}}
  281. </div>
  282. </td>
  283. </tr>
  284. <tr class="ti-no-ng-animate">
  285. <td class="ti-no-ng-animate ti-text-form-label text-width80">
  286. {{$.i18n.Tr "repo.modelarts.train_job.dura_time"}}
  287. </td>
  288. <td class="ti-text-form-content">
  289. <div class="text-span text-span-w" id="{{.VersionName}}-duration">
  290. {{$.duration}}
  291. </div>
  292. </td>
  293. </tr>
  294. <tr class="ti-no-ng-animate">
  295. <td class="ti-no-ng-animate ti-text-form-label text-width80">
  296. {{$.i18n.Tr "cloudbrain.description"}}
  297. </td>
  298. <td class="ti-text-form-content">
  299. <div class="text-span text-span-w" id="model_description">
  300. {{.Description}}
  301. </div>
  302. </td>
  303. </tr>
  304. <tr class="ti-no-ng-animate">
  305. <td class="ti-no-ng-animate ti-text-form-label text-width80">
  306. 数据集下载地址
  307. </td>
  308. <td class="ti-text-form-contentline60">
  309. <div class="text-span-new" id="model_description">
  310. {{$.datasetDownloadLink}}
  311. </div>
  312. </td>
  313. </tr>
  314. </tbody>
  315. </table>
  316. </div>
  317. <div class="ac-grid-col">
  318. <table class="ti-form">
  319. <tbody class="ti-text-form">
  320. <tr class="ti-no-ng-animate">
  321. <td class="ti-no-ng-animate ti-text-form-label text-width80">
  322. {{$.i18n.Tr "cloudbrain.mirror"}}
  323. </td>
  324. <td class="ti-text-form-content">
  325. <div class="text-span text-span-w" id="{{.VersionName}}-mirror">
  326. {{.Image}}
  327. </div>
  328. </td>
  329. </tr>
  330. <tr class="ti-no-ng-animate">
  331. <td class="ti-no-ng-animate ti-text-form-label text-width80">
  332. {{$.i18n.Tr "repo.modelarts.train_job.dataset"}}
  333. </td>
  334. <td class="ti-text-form-content">
  335. <div class="text-span text-span-w" id="{{.VersionName}}-BenchmarkTypeName">
  336. {{.DatasetName}}
  337. </div>
  338. </td>
  339. </tr>
  340. <tr class="ti-no-ng-animate">
  341. <td class="ti-no-ng-animate ti-text-form-label text-width80">
  342. {{$.i18n.Tr "repo.modelarts.train_job.standard"}}
  343. </td>
  344. <td class="ti-text-form-content">
  345. <div class="text-span text-span-w">
  346. {{$.resource_spec}}
  347. </div>
  348. </td>
  349. </tr>
  350. <tr class="ti-no-ng-animate">
  351. <td class="ti-no-ng-animate ti-text-form-label text-width80">
  352. {{$.i18n.Tr "repo.modelarts.train_job.start_time"}}
  353. </td>
  354. <td class="ti-text-form-content">
  355. <div class="text-span text-span-w">
  356. <div class="text-span text-span-w" id="{{.VersionName}}-startTime">
  357. {{if not (eq .StartTime 0)}}
  358. {{TimeSinceUnix1 .StartTime}}
  359. {{else}}
  360. --
  361. {{end}}
  362. </div>
  363. </div>
  364. </td>
  365. </tr>
  366. <tr class="ti-no-ng-animate">
  367. <td class="ti-no-ng-animate ti-text-form-label text-width80">
  368. {{$.i18n.Tr "repo.cloudbrain.time.endtime"}}
  369. </td>
  370. <td class="ti-text-form-content">
  371. <div class="text-span text-span-w" id="{{.VersionName}}-EndTime">
  372. {{if not (eq .EndTime 0)}}
  373. {{TimeSinceUnix1 .EndTime}}
  374. {{else}}
  375. --
  376. {{end}}
  377. </div>
  378. </td>
  379. </tr>
  380. </tbody>
  381. </table>
  382. </div>
  383. </div>
  384. </div>
  385. </div>
  386. </div>
  387. </div>
  388. </div>
  389. </div>
  390. {{end}}
  391. {{template "base/paginate" .}}
  392. </div>
  393. <!-- 确认模态框 -->
  394. <div id="deletemodel">
  395. <div class="ui basic modal">
  396. <div class="ui icon header">
  397. <i class="trash icon"></i> {{.i18n.Tr "cloudbrain.delete_task"}}
  398. </div>
  399. <div class="content">
  400. <p>{{.i18n.Tr "cloudbrain.task_delete_confirm"}}</p>
  401. </div>
  402. <div class="actions">
  403. <div class="ui red basic inverted cancel button">
  404. <i class="remove icon"></i> {{.i18n.Tr "cloudbrain.operate_cancel"}}
  405. </div>
  406. <div class="ui green basic inverted ok button">
  407. <i class="checkmark icon"></i> {{.i18n.Tr "cloudbrain.operate_confirm"}}
  408. </div>
  409. </div>
  410. </div>
  411. </div>
  412. </div>
  413. {{template "base/footer" .}}
  414. <script>
  415. $('.menu .item').tab()
  416. $(document).ready(function(){
  417. $('.ui.accordion').accordion({selector:{trigger:'.icon'}});
  418. });
  419. $(document).ready(function(){
  420. $('.secondary.menu .item').tab();
  421. });
  422. let userName
  423. let repoPath
  424. let jobName
  425. $(document).ready(function(){
  426. let url = window.location.href;
  427. let urlArr = url.split('/')
  428. userName = urlArr.slice(-5)[0]
  429. repoPath = urlArr.slice(-4)[0]
  430. jobName = urlArr.slice(-1)[0]
  431. })
  432. </script>