| @@ -28,6 +28,7 @@ | |||||
| } | } | ||||
| .descript_height{ | .descript_height{ | ||||
| color: #101010 !important; | color: #101010 !important; | ||||
| margin: 10px 0; | |||||
| height: 40px !important; | height: 40px !important; | ||||
| word-break:break-all; | word-break:break-all; | ||||
| line-height: 20px; | line-height: 20px; | ||||
| @@ -47,6 +48,7 @@ | |||||
| /deep/ ui.checkbox input[type=checkbox]::after{ | /deep/ ui.checkbox input[type=checkbox]::after{ | ||||
| border: 1px solid #0366D6 !important; | border: 1px solid #0366D6 !important; | ||||
| } | } | ||||
| </style> | </style> | ||||
| <div class="ui stackable grid"> | <div class="ui stackable grid"> | ||||
| <div style="width: 100%;margin:15px 0;"> | <div style="width: 100%;margin:15px 0;"> | ||||
| @@ -70,24 +72,27 @@ | |||||
| <div class="card" > | <div class="card" > | ||||
| <div class="extra full_height" > | <div class="extra full_height" > | ||||
| <div class=" header "> | |||||
| <div class=" header " style="overflow: hidden; white-space: nowrap; text-overflow: ellipsis;"> | |||||
| <a class="header_card" href="{{.Link}}"> {{.Name}}</a> | <a class="header_card" href="{{.Link}}"> {{.Name}}</a> | ||||
| </div> | </div> | ||||
| <div class='content descript_height'> | <div class='content descript_height'> | ||||
| {{.Description}} | {{.Description}} | ||||
| </div> | </div> | ||||
| <div class="content tags_height" style="margin-top: 5px;"> | |||||
| <div class="content " > | |||||
| {{if .Topics }} | {{if .Topics }} | ||||
| <div class=" ui tags "> | |||||
| <div class=" ui tags " > | |||||
| {{range .Topics}} | {{range .Topics}} | ||||
| {{if ne . "" }}<a href="{{AppSubUrl}}/explore/repos?q={{.}}&topic={{$.Topic}}"><div class="ui small label topic">{{.}}</div></a>{{end}} | |||||
| {{end}} | |||||
| {{if ne . "" }}<a style="margin: 5px 0;width: 100%;overflow: hidden; white-space: nowrap; text-overflow: ellipsis;" href="{{AppSubUrl}}/explore/repos?q={{.}}&topic={{$.Topic}}"><div class="ui small label topic" >{{.}}</div></a>{{end}} | |||||
| {{end}} | |||||
| </div> | </div> | ||||
| {{end}} | {{end}} | ||||
| </div> | |||||
| </div> | |||||
| </div> | |||||
| <div class=" extra " style="color:#888888;border-top: none !important"> | |||||
| <div class="ui mini right compact marg" > | <div class="ui mini right compact marg" > | ||||
| <a class="item marg "> | <a class="item marg "> | ||||
| {{svg "octicon-eye" 16}} {{.NumWatches}} | {{svg "octicon-eye" 16}} {{.NumWatches}} | ||||
| @@ -100,9 +105,6 @@ | |||||
| </a> | </a> | ||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| {{end}} | {{end}} | ||||
| @@ -133,7 +135,7 @@ | |||||
| </div> | </div> | ||||
| <p id='recommend'></p> | <p id='recommend'></p> | ||||
| <div class="inline field" style="margin-left: 30%;"> | |||||
| <div class="inline field" style="margin-left: 37%;"> | |||||
| <div class="actions"> | <div class="actions"> | ||||
| <button id="submitId" type="button" class="ui create_train_job green deny button" onclick="saveSeletedPro(1)"> | <button id="submitId" type="button" class="ui create_train_job green deny button" onclick="saveSeletedPro(1)"> | ||||
| {{.i18n.Tr "explore.save"}} | {{.i18n.Tr "explore.save"}} | ||||
| @@ -171,7 +173,7 @@ | |||||
| $.ajax({ | $.ajax({ | ||||
| type:"GET", | type:"GET", | ||||
| url:"/org/{{.Org.DisplayName}}/org_tag/repo_list?tagId="+typeTag, | |||||
| url:"/org/{{.Org.Name}}/org_tag/repo_list?tagId="+typeTag, | |||||
| dataType:"json", | dataType:"json", | ||||
| async:false, | async:false, | ||||
| success:function(json){ | success:function(json){ | ||||
| @@ -179,7 +181,7 @@ | |||||
| var n_length = data.length | var n_length = data.length | ||||
| pro_html = getHTML(data) | pro_html = getHTML(data) | ||||
| $("#org_list").append(pro_html) | $("#org_list").append(pro_html) | ||||
| console.log('原始',data) | |||||
| // console.log('原始',data) | |||||
| checkedNum(0) | checkedNum(0) | ||||
| } | } | ||||
| }); | }); | ||||
| @@ -214,7 +216,7 @@ | |||||
| // console.log("数据:",saveData) | // console.log("数据:",saveData) | ||||
| $.ajax({ | $.ajax({ | ||||
| type:"POST", | type:"POST", | ||||
| url:"/org/{{.Org.DisplayName}}/org_tag/repo_submit?tagId="+typeTag, | |||||
| url:"/org/{{.Org.Name}}/org_tag/repo_submit?tagId="+typeTag, | |||||
| contentType:'application/json', | contentType:'application/json', | ||||
| dataType:"json", | dataType:"json", | ||||
| async:false, | async:false, | ||||