Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
pull/1845/head
zouap 3 years ago
parent
commit
2a65969622
2 changed files with 42 additions and 33 deletions
  1. +2
    -5
      templates/repo/cloudbrain/show.tmpl
  2. +40
    -28
      templates/repo/modelarts/notebook/show.tmpl

+ 2
- 5
templates/repo/cloudbrain/show.tmpl View File

@@ -275,7 +275,7 @@ td, th {
</td> </td>
<td class="ti-text-form-content"> <td class="ti-text-form-content">
<div class="text-span text-span-w" id="{{.VersionName}}-computeresource"> <div class="text-span text-span-w" id="{{.VersionName}}-computeresource">
CPU/GPU
{{.ComputeResource}}
</div> </div>
</td> </td>
</tr> </tr>
@@ -285,7 +285,7 @@ td, th {
</td> </td>
<td class="ti-text-form-content"> <td class="ti-text-form-content">
<div class="text-span text-span-w" id="{{.VersionName}}-computeresource"> <div class="text-span text-span-w" id="{{.VersionName}}-computeresource">
DEBUG
{{.JobType}}
</div> </div>
</td> </td>
</tr> </tr>
@@ -331,10 +331,7 @@ td, th {
</div> </div>
</td> </td>
</tr> </tr>


</tbody> </tbody>
</table> </table>
</div> </div>


+ 40
- 28
templates/repo/modelarts/notebook/show.tmpl View File

@@ -256,38 +256,28 @@ td, th {
</div> </div>
</td> </td>
</tr> </tr>

<tr class="ti-no-ng-animate"> <tr class="ti-no-ng-animate">
<td class="ti-no-ng-animate ti-text-form-label text-width80">
{{$.i18n.Tr "repo.modelarts.train_job.start_time"}}
</td>
<td class="ti-no-ng-animate ti-text-form-label text-width80">
{{$.i18n.Tr "repo.cloudbrain_creator"}}
</td>


<td class="ti-text-form-content">
<div class="text-span text-span-w">
<span style="font-size: 12px;" class="">
{{if not (eq .StartTime 0)}}
{{TimeSinceUnix1 .StartTime}}
{{else}}
{{TimeSinceUnix1 .CreatedUnix}}
{{end}}
</span>
</div>
</td>
<td class="ti-text-form-content">
<div class="text-span text-span-w" id="{{.VersionName}}-mirror">
{{.User.Name}}
</div>
</td>
</tr> </tr>

<tr class="ti-no-ng-animate"> <tr class="ti-no-ng-animate">
<td class="ti-no-ng-animate ti-text-form-label text-width80"> <td class="ti-no-ng-animate ti-text-form-label text-width80">
{{$.i18n.Tr "admin.auths.updated"}}
{{$.i18n.Tr "repo.modelarts.computing_resources"}}
</td> </td>

<td class="ti-text-form-content"> <td class="ti-text-form-content">
<div class="text-span text-span-w" id="updateTime">
{{TimeSinceUnix1 .UpdatedUnix}}
<div class="text-span text-span-w" id="{{.VersionName}}-computeresource">
{{.ComputeResource}}
</div> </div>
</td> </td>
</tr>
</tr>


<tr class="ti-no-ng-animate"> <tr class="ti-no-ng-animate">
<td class="ti-no-ng-animate ti-text-form-label text-width80"> <td class="ti-no-ng-animate ti-text-form-label text-width80">
@@ -348,25 +338,47 @@ td, th {
</div> </div>
</td> </td>
</tr> </tr>
<tr class="ti-no-ng-animate">
<td class="ti-no-ng-animate ti-text-form-label text-width80">
{{$.i18n.Tr "repo.modelarts.train_job.start_time"}}
</td>


<tr class="ti-no-ng-animate">
<td class="ti-text-form-content">
<div class="text-span text-span-w">
<div class="text-span text-span-w" id="{{.VersionName}}-startTime">
{{if not (eq .StartTime 0)}}
{{TimeSinceUnix1 .StartTime}}
{{else}}
--
{{end}}
</div>
</div>
</td>
</tr>

<tr class="ti-no-ng-animate">
<td class="ti-no-ng-animate ti-text-form-label text-width80"> <td class="ti-no-ng-animate ti-text-form-label text-width80">
{{$.i18n.Tr "repo.cloudbrain_creator"}}
{{$.i18n.Tr "repo.cloudbrain.time.endtime"}}
</td> </td>


<td class="ti-text-form-content"> <td class="ti-text-form-content">
<div class="text-span text-span-w" id="{{.VersionName}}-mirror">
{{.User.Name}}
<div class="text-span text-span-w" id="{{.VersionName}}-EndTime">
{{if not (eq .EndTime 0)}}
{{TimeSinceUnix1 .EndTime}}
{{else}}
--
{{end}}
</div> </div>
</td> </td>
</tr> </tr>
<tr class="ti-no-ng-animate"> <tr class="ti-no-ng-animate">
<td class="ti-no-ng-animate ti-text-form-label text-width80"> <td class="ti-no-ng-animate ti-text-form-label text-width80">
{{$.i18n.Tr "cloudbrain.description"}} {{$.i18n.Tr "cloudbrain.description"}}
</td> </td>


<td class="ti-text-form-content"> <td class="ti-text-form-content">
<div class="text-span text-span-w" id="model_storage_path">
<div class="text-span text-span-w" id="model_description">
{{.Description}} {{.Description}}
</div> </div>
</td> </td>


Loading…
Cancel
Save