| @@ -493,6 +493,13 @@ account_link = Linked Accounts | |||||
| organization = Organizations | organization = Organizations | ||||
| uid = Uid | uid = Uid | ||||
| u2f = Security Keys | u2f = Security Keys | ||||
| bind_weChat = Bind WeChat | |||||
| bind_account_information = Bind account information | |||||
| bind_time = Bind Time | |||||
| wechat = Wechat | |||||
| Unbind = Unbind | |||||
| unbind_wechat = Are you sure you want to unbind WeChat? | |||||
| unbind_computing = After unbundling, the qizhi computing power environment will not be available | |||||
| public_profile = Public Profile | public_profile = Public Profile | ||||
| profile_desc = Your email address will be used for notifications and other operations. | profile_desc = Your email address will be used for notifications and other operations. | ||||
| @@ -496,6 +496,13 @@ account_link=已绑定帐户 | |||||
| organization=组织 | organization=组织 | ||||
| uid=用户 ID | uid=用户 ID | ||||
| u2f=安全密钥 | u2f=安全密钥 | ||||
| bind_weChat = 微信绑定 | |||||
| bind_account_information = 绑定账号信息 | |||||
| bind_time = 绑定时间 | |||||
| wechat = 微信 | |||||
| unbind = 解除绑定 | |||||
| unbind_wechat = 确定要解绑微信? | |||||
| unbind_computing = 解绑后将无法使用启智算力环境 | |||||
| public_profile=公开信息 | public_profile=公开信息 | ||||
| profile_desc=您的电子邮件地址将用于通知和其他操作。 | profile_desc=您的电子邮件地址将用于通知和其他操作。 | ||||
| @@ -66,7 +66,7 @@ | |||||
| <!-- 任务名 --> | <!-- 任务名 --> | ||||
| <div class="two wide column nowrap"> | <div class="two wide column nowrap"> | ||||
| {{if or (eq .JobType "DEBUG") (eq .JobType "SNN4IMAGENET") (eq .JobType "BRAINSCORE")}} | {{if or (eq .JobType "DEBUG") (eq .JobType "SNN4IMAGENET") (eq .JobType "BRAINSCORE")}} | ||||
| <a class="title" href="{{AppSubUrl}}/{{.Repo.OwnerName}}/{{.Repo.Name}}{{if eq .ComputeResource "CPU/GPU"}}/cloudbrain/{{.JobName}}{{else}}/modelarts/notebook/{{.JobID}}{{end}}" title="{{.JobName}}" style="font-size: 14px;"> | |||||
| <a class="title" href="{{AppSubUrl}}/{{.Repo.OwnerName}}/{{.Repo.Name}}{{if eq .ComputeResource "CPU/GPU"}}/cloudbrain/{{.JobName}}{{else}}/modelarts/notebook/{{.JobID}}{{end}}?type=admin" title="{{.JobName}}" style="font-size: 14px;"> | |||||
| <span class="fitted" style="width: 90%;vertical-align: middle;">{{.JobName}}</span> | <span class="fitted" style="width: 90%;vertical-align: middle;">{{.JobName}}</span> | ||||
| </a> | </a> | ||||
| {{else if eq .JobType "INFERENCE"}} | {{else if eq .JobType "INFERENCE"}} | ||||
| @@ -254,7 +254,7 @@ | |||||
| <button class="ui green button" > | <button class="ui green button" > | ||||
| {{.i18n.Tr "repo.cloudbrain.new"}} | {{.i18n.Tr "repo.cloudbrain.new"}} | ||||
| </button> | </button> | ||||
| <a class="ui button cancel" href="">{{.i18n.Tr "repo.cloudbrain.cancel"}}</a> | |||||
| <a class="ui button cancel" href="{{.RepoLink}}//debugjob?debugListType=all">{{.i18n.Tr "repo.cloudbrain.cancel"}}</a> | |||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| </form> | </form> | ||||
| @@ -11,7 +11,7 @@ | |||||
| {{.i18n.Tr "repo.cloudbrain"}} | {{.i18n.Tr "repo.cloudbrain"}} | ||||
| </a> | </a> | ||||
| <div class="divider"> / </div> | <div class="divider"> / </div> | ||||
| <a class="section backTodeBug" href="{{.RepoLink}}/debugjob?debugListType=CPU/GPU"> | |||||
| <a class="section backTodeBug" href="{{.RepoLink}}/debugjob?debugListType=all"> | |||||
| {{$.i18n.Tr "repo.modelarts.notebook"}} | {{$.i18n.Tr "repo.modelarts.notebook"}} | ||||
| </a> | </a> | ||||
| <div class="divider"> / </div> | <div class="divider"> / </div> | ||||
| @@ -485,7 +485,7 @@ | |||||
| let getParam=getQueryVariable('debugListType') | let getParam=getQueryVariable('debugListType') | ||||
| let dropdownValue = ['all','',false].includes(getParam)? '全部' : getParam | let dropdownValue = ['all','',false].includes(getParam)? '全部' : getParam | ||||
| localStorage.setItem('all',location.href) | |||||
| // localStorage.setItem('all',location.href) | |||||
| function getQueryVariable(variable) | function getQueryVariable(variable) | ||||
| { | { | ||||
| let query = window.location.search.substring(1); | let query = window.location.search.substring(1); | ||||
| @@ -505,6 +505,7 @@ | |||||
| }) | }) | ||||
| $('.ui.selection.dropdown').dropdown({ | $('.ui.selection.dropdown').dropdown({ | ||||
| onChange:function(value){ | onChange:function(value){ | ||||
| location.href = `${url}/debugjob?debugListType=${value}` | location.href = `${url}/debugjob?debugListType=${value}` | ||||
| } | } | ||||
| }) | }) | ||||
| @@ -101,7 +101,7 @@ | |||||
| <button class="ui green button"> | <button class="ui green button"> | ||||
| {{.i18n.Tr "repo.cloudbrain.new"}} | {{.i18n.Tr "repo.cloudbrain.new"}} | ||||
| </button> | </button> | ||||
| <a class="ui button cancel" href="">{{.i18n.Tr "repo.cloudbrain.cancel"}}</a> | |||||
| <a class="ui button cancel" href="{{.RepoLink}}//debugjob?debugListType=all">{{.i18n.Tr "repo.cloudbrain.cancel"}}</a> | |||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| </form> | </form> | ||||
| @@ -171,11 +171,8 @@ | |||||
| if(option.innerText===inputValue){ | if(option.innerText===inputValue){ | ||||
| hiddenInput.value = option.getAttribute('data-value'); | hiddenInput.value = option.getAttribute('data-value'); | ||||
| break | |||||
| break | |||||
| } | } | ||||
| } | } | ||||
| }) | }) | ||||
| </script> | </script> | ||||
| @@ -11,7 +11,7 @@ | |||||
| {{.i18n.Tr "repo.cloudbrain"}} | {{.i18n.Tr "repo.cloudbrain"}} | ||||
| </a> | </a> | ||||
| <div class="divider"> / </div> | <div class="divider"> / </div> | ||||
| <a class="section backTodeBug" href="{{.RepoLink}}/debugjob?debugListType=NPU"> | |||||
| <a class="section backTodeBug" href="{{.RepoLink}}/debugjob?debugListType=all"> | |||||
| {{$.i18n.Tr "repo.modelarts.notebook"}} | {{$.i18n.Tr "repo.modelarts.notebook"}} | ||||
| </a> | </a> | ||||
| <div class="divider"> / </div> | <div class="divider"> / </div> | ||||
| @@ -66,3 +66,6 @@ | |||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| {{template "base/footer" .}} | {{template "base/footer" .}} | ||||
| <script> | |||||
| console.log({{.Link}}) | |||||
| </script> | |||||
| @@ -104,41 +104,35 @@ | |||||
| </form> | </form> | ||||
| </div> | </div> | ||||
| <h4 class="ui top attached header"> | <h4 class="ui top attached header"> | ||||
| 微信绑定<!-- {{.i18n.Tr "settings.avatar"}} --> | |||||
| {{$.i18n.Tr "settings.bind_weChat"}} | |||||
| </h4> | </h4> | ||||
| {{if not .SignedUser.IsBindWechat}} | {{if not .SignedUser.IsBindWechat}} | ||||
| <div class="ui attached segment"> | <div class="ui attached segment"> | ||||
| <a href="/authentication/wechat/bind?redirect_to=/user/settings" class="ui green button">绑定微信</a> | |||||
| <a href="/authentication/wechat/bind?redirect_to=/user/settings" class="ui green button">{{$.i18n.Tr "settings.bind_weChat"}}</a> | |||||
| </div> | </div> | ||||
| {{else}} | {{else}} | ||||
| <div class="ui attached segment"> | <div class="ui attached segment"> | ||||
| <table class="ui celled striped table provider titleless"> | <table class="ui celled striped table provider titleless"> | ||||
| <thead> | <thead> | ||||
| <th class="center aligned"> | <th class="center aligned"> | ||||
| 绑定账号信息 | |||||
| {{$.i18n.Tr "settings.bind_account_information"}} | |||||
| </th> | </th> | ||||
| <!-- <th class="center aligned"> | |||||
| 详情 | |||||
| </th> --> | |||||
| <th class="center aligned"> | <th class="center aligned"> | ||||
| 绑定时间 | |||||
| {{$.i18n.Tr "settings.bind_time"}} | |||||
| </th> | </th> | ||||
| <th class="center aligned"> | <th class="center aligned"> | ||||
| 操作 | |||||
| {{$.i18n.Tr "repo.cloudbrain_operate"}} | |||||
| </th> | </th> | ||||
| </thead> | </thead> | ||||
| <tbody> | <tbody> | ||||
| <td class="center aligned"> | <td class="center aligned"> | ||||
| 微信 | |||||
| {{$.i18n.Tr "settings.wechat"}} | |||||
| </td> | </td> | ||||
| <!-- <td class="center aligned"> | |||||
| <img class="ui avatar image" width="24" height="24" src="{{.SignedUser.RelAvatarLink}}">{{.SignedUser.Name}} | |||||
| </td> --> | |||||
| <td class="center aligned"> | <td class="center aligned"> | ||||
| {{TimeSinceUnix1 .SignedUser.WechatBindUnix}} | {{TimeSinceUnix1 .SignedUser.WechatBindUnix}} | ||||
| <td class="center aligned"> | <td class="center aligned"> | ||||
| <div> | <div> | ||||
| <a class="ui inverted orange button " onclick="showcreate(this)" href="javascript: void(0)">解除绑定</a> | |||||
| <a class="ui inverted orange button " onclick="showcreate(this)" href="javascript: void(0)">{{$.i18n.Tr "settings.unbind"}}</a> | |||||
| </div> | </div> | ||||
| </td> | </td> | ||||
| </tbody> | </tbody> | ||||
| @@ -147,13 +141,13 @@ | |||||
| {{end}} | {{end}} | ||||
| </div> | </div> | ||||
| <div class="ui mini modal wx-unbind"> | <div class="ui mini modal wx-unbind"> | ||||
| <div class="header">确定要解绑微信?</div> | |||||
| <div class="header">{{$.i18n.Tr "settings.unbind_wechat"}}</div> | |||||
| <div class="content"> | <div class="content"> | ||||
| <p>解绑后将无法使用云脑计算资源</p> | |||||
| <p>{{$.i18n.Tr "settings.unbind_computing"}}</p> | |||||
| </div> | </div> | ||||
| <div class="actions"> | <div class="actions"> | ||||
| <div class="ui blank cancel button">取消</div> | |||||
| <div class="ui green approve button">确定</div> | |||||
| <div class="ui blank cancel button">{{$.i18n.Tr "cancel"}}</div> | |||||
| <div class="ui green approve button">{{$.i18n.Tr "repo.confirm_choice"}}</div> | |||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| @@ -4179,9 +4179,9 @@ $('.question.circle.icon.cloudbrain-question').hover(function(){ | |||||
| }); | }); | ||||
| //云脑详情页面跳转回上一个页面 | //云脑详情页面跳转回上一个页面 | ||||
| $(".section.backTodeBug").attr("href",localStorage.getItem('all')) | |||||
| // $(".section.backTodeBug").attr("href",localStorage.getItem('all')) | |||||
| //新建调试取消跳转 | //新建调试取消跳转 | ||||
| $(".ui.button.cancel").attr("href",localStorage.getItem('all')) | |||||
| // $(".ui.button.cancel").attr("href",localStorage.getItem('all')) | |||||
| function initcreateRepo(){ | function initcreateRepo(){ | ||||
| let timeout; | let timeout; | ||||