@@ -268,6 +268,7 @@ func MilestoneIssuesAndPulls(ctx *context.Context) { | |||||
ctx.Data["CanWriteIssues"] = ctx.Repo.CanWriteIssuesOrPulls(false) | ctx.Data["CanWriteIssues"] = ctx.Repo.CanWriteIssuesOrPulls(false) | ||||
ctx.Data["CanWritePulls"] = ctx.Repo.CanWriteIssuesOrPulls(true) | ctx.Data["CanWritePulls"] = ctx.Repo.CanWriteIssuesOrPulls(true) | ||||
ctx.Data["PageIsIssueList"] = true | |||||
ctx.HTML(200, tplMilestoneIssues) | ctx.HTML(200, tplMilestoneIssues) | ||||
} | } |
@@ -274,7 +274,7 @@ func NotebookDel(ctx *context.Context) { | |||||
return | return | ||||
} | } | ||||
if task.Status != string(models.JobStopped) { | |||||
if task.Status != string(models.ModelArtsCreateFailed) && task.Status != string(models.ModelArtsStartFailed) && task.Status != string(models.ModelArtsStopped){ | |||||
log.Error("the job(%s) has not been stopped", task.JobName) | log.Error("the job(%s) has not been stopped", task.JobName) | ||||
ctx.ServerError("the job has not been stopped", errors.New("the job has not been stopped")) | ctx.ServerError("the job has not been stopped", errors.New("the job has not been stopped")) | ||||
return | return | ||||
@@ -337,7 +337,8 @@ | |||||
{{end}} | {{end}} | ||||
<div class="ui right"> | <div class="ui right"> | ||||
<a class="membersmore text grey" href="{{.RepoLink}}/contributors">全部 {{svg "octicon-chevron-right" 16}}</a> | |||||
<!-- <a class="membersmore text grey" href="{{.RepoLink}}/contributors">全部 {{svg "octicon-chevron-right" 16}}</a> --> | |||||
<a class="membersmore text grey" href="{{.RepoLink}}/contributors?type={{if .IsViewBranch}}branch{{else}}tag{{end}}&name={{.BranchName}}">全部 {{svg "octicon-chevron-right" 16}}</a> | |||||
</div> | </div> | ||||
</h4> | </h4> | ||||
<div class="ui members" id="contributorInfo"> | <div class="ui members" id="contributorInfo"> | ||||
@@ -45,6 +45,8 @@ export default { | |||||
data() { | data() { | ||||
return { | return { | ||||
url:'', | url:'', | ||||
url_infor:'', | |||||
href_:'', | |||||
contributors_list:[], | contributors_list:[], | ||||
contributors_list_page:[], | contributors_list_page:[], | ||||
currentPage:1, | currentPage:1, | ||||
@@ -56,7 +58,7 @@ export default { | |||||
methods: { | methods: { | ||||
getContributorsList(){ | getContributorsList(){ | ||||
this.$axios.get(this.url+'/list').then((res)=>{ | |||||
this.$axios.get(this.url+'/list?'+this.url_infor).then((res)=>{ | |||||
this.contributors_list = res.data.contributor_info | this.contributors_list = res.data.contributor_info | ||||
this.totalNum = this.contributors_list.length | this.totalNum = this.contributors_list.length | ||||
this.contributors_list_page = this.contributors_list.slice(0,this.pageSize) | this.contributors_list_page = this.contributors_list.slice(0,this.pageSize) | ||||
@@ -78,6 +80,10 @@ created(){ | |||||
this.url = url; | this.url = url; | ||||
let strIndex = this.url.indexOf("contributors") | let strIndex = this.url.indexOf("contributors") | ||||
this.url_code = this.url.substr(0,strIndex) | this.url_code = this.url.substr(0,strIndex) | ||||
this.href_ = window.location.href; | |||||
let index = this.href_.indexOf("?") | |||||
this.url_infor = this.href_.substring(index+1,this.href_.length) | |||||
this.getContributorsList() | this.getContributorsList() | ||||
}, | }, | ||||