|
|
|
@@ -63,7 +63,17 @@ |
|
|
|
margin: 0.2em; |
|
|
|
margin-left: none; |
|
|
|
} |
|
|
|
|
|
|
|
.tag_key{ |
|
|
|
max-width:100%; |
|
|
|
margin: 2px 2px; |
|
|
|
display:inline-flex; |
|
|
|
} |
|
|
|
.bpadding{ |
|
|
|
padding:10px 40px |
|
|
|
} |
|
|
|
.omit{ |
|
|
|
overflow: hidden; white-space: nowrap; text-overflow: ellipsis; |
|
|
|
} |
|
|
|
</style> |
|
|
|
{{template "base/head" .}} |
|
|
|
<div class="organization profile"> |
|
|
|
@@ -148,16 +158,19 @@ |
|
|
|
<div class="ui sixteen wide computer column"> |
|
|
|
<div class="ui mobile reversed stackable grid"> |
|
|
|
<div class="ui ten wide tablet eleven wide computer column" id='tag'> |
|
|
|
<a class="ui small lable tag_lable topic tag_bg" style="margin-left: 0px;" >全部关键字</a> |
|
|
|
<a class="tag_key " ><span class="ui small tag_lable topic omit tag_bg" >全部关键字</span></a> |
|
|
|
{{range .CoursesKeywords}} |
|
|
|
<a class="ui small lable tag_lable topic" >{{.}}</a> |
|
|
|
<!-- <a class="ui small lable tag_lable topic" >{{.}}</a> --> |
|
|
|
<a class="tag_key" > |
|
|
|
<span class="ui small tag_lable topic omit" >{{.}}</span> |
|
|
|
</a> |
|
|
|
{{end}} |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="ui sixteen wide mobile six wide tablet five wide computer column"> |
|
|
|
<!-- {{if .CanCreateOrgRepo}} --> |
|
|
|
<div class="text center" style="margin-left: 10px;"> |
|
|
|
<a class="ui green button" href="{{AppSubUrl}}/course/create"><i class="ri-folder-add-line" style="vertical-align: middle;"></i> 发布课程{{.i18n.Tr "new_repo"}} </a> |
|
|
|
<a class="ui green button bpadding" href="{{AppSubUrl}}/course/create"><i class="ri-folder-add-line" style="vertical-align: middle;"></i> 发布课程 </a> |
|
|
|
</div> |
|
|
|
<!-- {{end}} --> |
|
|
|
</div> |
|
|
|
@@ -196,6 +209,7 @@ |
|
|
|
<div class="ui attached table segment course items"> |
|
|
|
{{ range .tags}} |
|
|
|
{{if eq .TagName "精选项目"}} |
|
|
|
|
|
|
|
{{range $i, $v := .RepoList}} |
|
|
|
{{if gt $i 0}} |
|
|
|
<div class="ui divider" style="margin-bottom:10px;"></div> |
|
|
|
@@ -205,8 +219,7 @@ |
|
|
|
<div class="content" style="margin-left: 10px;"> |
|
|
|
<a href="{{$.OrgLink}}/teams/{{.LowerName}}"><strong class="team-name">{{.Alias}}</strong></a> |
|
|
|
<p class="text grey"> |
|
|
|
|
|
|
|
贡献者: |
|
|
|
贡献者:{{.Creator.Name}} |
|
|
|
</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
@@ -322,8 +335,8 @@ |
|
|
|
atag[i].onclick = function () |
|
|
|
{ |
|
|
|
for (i = 0; i < atag.length; i++) |
|
|
|
atag[i].className = "ui small lable tag_lable topic"; |
|
|
|
this.className = "ui small lable tag_lable topic tag_bg"; |
|
|
|
atag[i].getElementsByTagName('span')[0].className = "ui small tag_lable topic omit"; |
|
|
|
this.getElementsByTagName('span')[0].className = "ui small tag_lable topic omit tag_bg"; |
|
|
|
}; |
|
|
|
} |
|
|
|
}; |
|
|
|
|