Browse Source

Merge branch 'V202108' of git.openi.org.cn:OpenI/aiforge into cb2-without-dataset

tags/v1.21.9.1^2
lewis 4 years ago
parent
commit
ae50276a14
3 changed files with 8 additions and 3 deletions
  1. +3
    -0
      routers/repo/view.go
  2. +1
    -1
      templates/repo/cloudbrain/new.tmpl
  3. +4
    -2
      web_src/js/components/Images.vue

+ 3
- 0
routers/repo/view.go View File

@@ -590,6 +590,9 @@ func Home(ctx *context.Context) {
if err == nil && contributors != nil {
var contributorInfos []*ContributorInfo
for _, c := range contributors {
if strings.Compare(c.Email,"") == 0 {
continue
}
// get user info from committer email
user, err := models.GetUserByEmail(c.Email)
if err == nil {


+ 1
- 1
templates/repo/cloudbrain/new.tmpl View File

@@ -165,7 +165,7 @@

<div class="inline required field">
<label>镜像</label>
<input type="text" list="cloudbrain_image" placeholder="选择镜像" name="image" required autofocus maxlength="36">
<input type="text" list="cloudbrain_image" placeholder="选择镜像" name="image" required autofocus maxlength="255">
<datalist class="ui search" id="cloudbrain_image" style='width:385px;' name="image">
{{range .images}}
<option name="image" value="{{.Place}}">{{.PlaceView}}</option>


+ 4
- 2
web_src/js/components/Images.vue View File

@@ -62,7 +62,7 @@
<a class="text-over" style="display:block;" @click="copyUrl(scope.row.place)">{{ scope.row.place }}</a>
</el-tooltip>
<span class="text-over" :title="scope.row.description">{{ scope.row.description | clearP}}</span>
<span class="text-over" :title="scope.row.description | clearP">{{ scope.row.description | clearP}}</span>
</template>
</el-table-column>
<el-table-column
@@ -154,7 +154,7 @@
<a class="text-over" style="display:block;" @click="copyUrl(scope.row.place)">{{ scope.row.place }}</a>
</el-tooltip>
<span class="text-over" :title="scope.row.description">{{ scope.row.description | clearP }}</span>
<span class="text-over" :title="scope.row.description | clearP">{{ scope.row.description | clearP }}</span>
</template>
</el-table-column>
<el-table-column
@@ -362,10 +362,12 @@ export default {
searchName(){
if(this.activeName=='first'){
this.params.name = this.search
this.params.page = 1
this.getImageList()
}
if(this.activeName=='second'){
this.params1.name = this.search
this.params1.page = 1
this.getImageList1()
}


Loading…
Cancel
Save