Browse Source

fix issue

tags/v1.22.12.1^2
zhoupzh 3 years ago
parent
commit
8d57ab8a5d
2 changed files with 25 additions and 2 deletions
  1. +24
    -1
      templates/repo/grampus/notebook/show.tmpl
  2. +1
    -1
      templates/repo/modelarts/notebook/show.tmpl

+ 24
- 1
templates/repo/grampus/notebook/show.tmpl View File

@@ -380,7 +380,30 @@
{{end}}
</tbody>
</table>
{{if eq .ComputeResource "NPU"}}
<table style="border:none" class="ui fixed small stackable table">
<thead>
<tr>
<th style="color: #8a8e99;font-size:12px" class="three wide left aligned">{{$.i18n.Tr "dataset.file"}}</th>
<th style="color: #8a8e99;font-size:12px"class="eleven wide">{{$.i18n.Tr "dataset.download_url"}}</th>
<th style="color: #8a8e99;font-size:12px" class="two wide center aligned">{{$.i18n.Tr "dataset.download_oper"}}</th>
</tr>
</thead>
<tbody>
<tr>
<td class="dataset_nowrap_two_line">
{{if eq $.modelDownload.IsDelete true}}
{{$.modelDownload.Name}}({{$.i18n.Tr "dataset.file_deleted"}})
{{else}}
<a href="{{$.RepositoryLink}}" target="_blank">{{$.modelDownload.Name}}</a>
{{end}}
</td>
<td><div class="dataset_nowrap_two_line">{{$.modelDownload.DownloadLink}}</div></td>
<td class="center aligned"><a class="ui poping up clipboard" id="clipboard-btn-dataset" 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="{{$.modelDownload.DownloadLink}}">{{if $.modelDownload.DownloadLink}}{{$.i18n.Tr "dataset.download_copy"}}{{end}}</a></td>
</tr>
</tbody>
</table>
{{end}}
</div>
</div>
</div>


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

@@ -232,7 +232,7 @@
{{if eq .IsDelete true}}
{{.DatasetName}}({{$.i18n.Tr "dataset.file_deleted"}})
{{else}}
<a href="{{$.RepositoryLink}}" target="_blank">{{.DatasetName}}</a>
<a href="{{.RepositoryLink}}" target="_blank">{{.DatasetName}}</a>
{{end}}
</td>
<td><div class="dataset_nowrap_two_line">{{.DatasetDownloadLink}}</div></td>


Loading…
Cancel
Save