Browse Source

fix issue

tags/v1.22.2.2^2
zhoupzh 4 years ago
parent
commit
d9d3d51928
2 changed files with 3 additions and 8 deletions
  1. +2
    -2
      templates/repo/debugjob/index.tmpl
  2. +1
    -6
      templates/user/settings/profile.tmpl

+ 2
- 2
templates/repo/debugjob/index.tmpl View File

@@ -324,11 +324,11 @@
{{$.CsrfTokenHtml}}
{{if .CanDebug}}
{{if eq .Status "RUNNING" "WAITING" "CREATING" "STARTING"}}
<a style="margin: 0 1rem;" id="ai-debug-{{.JobID}}" class='ui basic ai_debug {{if eq .Status "CREATING" "STOPPING" "WAITING" "STARTING"}}disabled {{else}}blue {{end}}button' data-jobid="{{.JobID}}" data-repopath='{{$.RepoLink}}{{if eq .ComputeResource "CPU/GPU"}}/cloudbrain{{else}}/modelarts/notebook{{end}}/{{.JobID}}/' data-linkpath='{{$.Link}}'>
<a style="margin: 0 1rem;" id="ai-debug-{{.JobID}}" class='ui basic ai_debug {{if eq .Status "CREATING" "STOPPING" "WAITING" "STARTING"}}disabled {{else}}blue {{end}}button' data-jobid="{{.JobID}}" data-repopath='{{$.RepoLink}}{{if eq .ComputeResource "CPU/GPU"}}/cloudbrain{{else}}/modelarts/notebook{{end}}/{{.JobID}}/'>
{{$.i18n.Tr "repo.debug"}}
</a>
{{else}}
<a id="ai-debug-{{.JobID}}" class='ui basic ai_debug {{if eq .Status "CREATING" "STOPPING" "WAITING" "STARTING"}} disabled {{else}}blue {{end}}button' data-jobid="{{.JobID}}" data-repopath='{{$.RepoLink}}{{if eq .ComputeResource "CPU/GPU"}}/cloudbrain{{else}}/modelarts/notebook{{end}}/{{.JobID}}/'>
<a id="ai-debug-{{.JobID}}" class='ui basic ai_debug {{if eq .Status "CREATING" "STOPPING" "WAITING" "STARTING"}} disabled {{else}}blue {{end}}button' data-jobid="{{.JobID}}" data-repopath='{{$.RepoLink}}{{if eq .ComputeResource "CPU/GPU"}}/cloudbrain{{else}}/modelarts/notebook{{end}}/{{.JobID}}/' data-linkpath='{{$.Link}}'>
{{$.i18n.Tr "repo.debug_again"}}
</a>
{{end}}


+ 1
- 6
templates/user/settings/profile.tmpl View File

@@ -1,7 +1,5 @@
{{template "base/head" .}}

<div class="user settings profile">
{{template "user/settings/navbar" .}}
<div class="alert" style="top: 0;"></div>
<div class="ui container">
@@ -113,7 +111,7 @@
<a href="/authentication/wechat/bind" class="ui green button">绑定微信</a>
</div>
{{else}}
<div>
<div class="ui attached segment">
<table class="ui celled striped table provider titleless">
<thead>
<th class="center aligned">
@@ -148,8 +146,6 @@
</div>
{{end}}
</div>


<div class="ui mini modal wx-unbind">
<div class="header">确定要解绑微信?</div>
<div class="content">
@@ -164,7 +160,6 @@
{{template "base/footer" .}}
<script>
function showcreate(obj){
console.log({{.SignedUser.WechatBindUnix}})
const {csrf} = window.config
$('.ui.modal.wx-unbind')
.modal({


Loading…
Cancel
Save