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 21 kB

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