Browse Source

Merge branch 'zouap_static' of https://git.openi.org.cn/OpenI/aiforge into zouap_static

pull/3035/head
zouap 2 years ago
parent
commit
b3bc4f0871
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      templates/repo/modelsafety/show.tmpl

+ 2
- 2
templates/repo/modelsafety/show.tmpl View File

@@ -470,7 +470,7 @@
<div> <div>
<a id="-log-down" <a id="-log-down"
class='{{if $.canDownload}}ti-download-file{{else}}disabled{{end}}' class='{{if $.canDownload}}ti-download-file{{else}}disabled{{end}}'
href="/api/v1/repos/{{$.RepoRelPath}}">
href="/api/v1/repos/{{$.RepoRelPath}}/cloudbrain">
<i class="ri-download-cloud-2-line"></i> <i class="ri-download-cloud-2-line"></i>
<span style="margin-left: 0.3rem;">{{$.i18n.Tr "repo.modelarts.download_log"}}</span> <span style="margin-left: 0.3rem;">{{$.i18n.Tr "repo.modelarts.download_log"}}</span>
</a> </a>
@@ -850,7 +850,7 @@
SPEC && $('td.ti-text-form-content.resorce_type div').text(getListValueWithKey(ACC_CARD_TYPE, SPEC.AccCardType)); SPEC && $('td.ti-text-form-content.resorce_type div').text(getListValueWithKey(ACC_CARD_TYPE, SPEC.AccCardType));
} }
var oLogHref = $('#-log-down').attr('href'); var oLogHref = $('#-log-down').attr('href');
$('#-log-down').attr('href', oLogHref + `/modelsafety/${res.ID}/down_log_file`);
$('#-log-down').attr('href', oLogHref + `/${res.ID}/down_log_file`);
if (res.ResultJson) { if (res.ResultJson) {
try { try {
resultData = JSON.parse(res.ResultJson); resultData = JSON.parse(res.ResultJson);


Loading…
Cancel
Save