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