|
|
@@ -81,7 +81,10 @@ |
|
|
|
} |
|
|
|
|
|
|
|
</style> |
|
|
|
|
|
|
|
{{template "base/head_course" .}} |
|
|
|
<!-- 提示框 --> |
|
|
|
<div class="alert"></div> |
|
|
|
<div class="organization profile"> |
|
|
|
{{/* overflow: auto is the clearfix - this avoids the image going beyond |
|
|
|
the container where it is supposed to stay inside. */}} |
|
|
@@ -113,7 +116,7 @@ |
|
|
|
|
|
|
|
<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'> |
|
|
|
<div class="ui ten wide tablet twelve wide computer column" id='tag'> |
|
|
|
|
|
|
|
<a class="{{if eq $.Keyword "" }} tag_bg {{end}} tag_key ui small tag_lable topic omit" href="{{$.Link}}?" >{{$.i18n.Tr "org.all_keywords"}}</span></a> |
|
|
|
|
|
|
@@ -126,47 +129,40 @@ |
|
|
|
{{end}} |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="ui sixteen wide mobile six wide tablet five wide computer column"> |
|
|
|
<div class="ui sixteen wide mobile six wide tablet four wide computer column"> |
|
|
|
<!-- {{if .CanCreateOrgRepo}} --> |
|
|
|
<div class="text center" style="margin-left: 10px;"> |
|
|
|
<a class="ui green button bpadding" href="{{AppSubUrl}}/course/create"><i class="ri-folder-add-line" style="vertical-align: middle;"></i> {{.i18n.Tr "org.release_course"}} </a> |
|
|
|
<div class="text center" > |
|
|
|
<a style="width: 80%;" class="ui green button bpadding" href="{{AppSubUrl}}/course/create"><i class="ri-folder-add-line" style="vertical-align: middle;"></i> {{.i18n.Tr "org.release_course"}} </a> |
|
|
|
</div> |
|
|
|
<!-- {{end}} --> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<!-- 全部 --> |
|
|
|
|
|
|
|
<div class="ui stackable grid"> |
|
|
|
|
|
|
|
<div class="ui sixteen wide computer column"> |
|
|
|
<div class="ui mobile reversed stackable grid"> |
|
|
|
<div class="ui ten wide tablet eleven wide computer column"> |
|
|
|
<div class="ui ten wide tablet twelve wide computer column"> |
|
|
|
{{template "org/course_list" .}} |
|
|
|
{{template "base/paginate" .}} |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="ui sixteen wide mobile six wide tablet five wide computer column"> |
|
|
|
|
|
|
|
<div class="ui sixteen wide mobile six wide tablet four wide computer column"> |
|
|
|
<h4 class="ui top attached header noborder"> |
|
|
|
<strong>{{.i18n.Tr "org.selected_couse"}}</strong> |
|
|
|
<div class="ui right"> |
|
|
|
<a class="text grey" id="model" onclick="showcreate()">{{svg "octicon-gear" 16}}</a> |
|
|
|
</div> |
|
|
|
</h4> |
|
|
|
|
|
|
|
<div class="ui attached table segment course items noborder"> |
|
|
|
{{ range .tags}} |
|
|
|
{{if eq .TagName "精选项目"}} |
|
|
|
|
|
|
|
{{range $i, $v := .RepoList}} |
|
|
|
{{if gt $i 0}} |
|
|
|
<div class="ui divider" style="margin-bottom:10px;"></div> |
|
|
|
{{end}} |
|
|
|
<div class="item"> |
|
|
|
<i class="ri-bookmark-3-line course_color" ></i> |
|
|
|
<i class="large icon ri-bookmark-3-line course_color"></i> |
|
|
|
<div class="content" style="margin-left: 10px;"> |
|
|
|
<a href="{{.Link}}"><strong class="team-name">{{.Alias}}</strong></a> |
|
|
|
<p class="text grey"> |
|
|
@@ -182,10 +178,7 @@ |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<h4 class="ui top attached header noborder"> |
|
|
|
<strong>{{.i18n.Tr "org.people"}}</strong> |
|
|
|
<div class="ui right"> |
|
|
@@ -204,7 +197,6 @@ |
|
|
|
<a class="ui blue basic button" onclick="jion_course_team()"> <i class="ri-user-add-line"></i> {{.i18n.Tr "org.teams.join_teams"}}</a> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
{{if .IsOrganizationMember}} |
|
|
|
<div class="ui top attached header noborder"> |
|
|
|
<strong>{{.i18n.Tr "org.teams"}}</strong> |
|
|
@@ -224,8 +216,8 @@ |
|
|
|
{{end}} |
|
|
|
</div> |
|
|
|
{{if .IsOrganizationOwner}} |
|
|
|
<div class="ui bottom attached segment noborder"> |
|
|
|
<a class="ui blue small button" href="{{.OrgLink}}/teams/new">{{.i18n.Tr "org.create_new_team"}}</a> |
|
|
|
<div class="ui bottom attached segment text center noborder"> |
|
|
|
<a class="ui blue basic button" style="width: 80%;" href="{{.OrgLink}}/teams/new">{{.i18n.Tr "org.create_new_team"}}</a> |
|
|
|
</div> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
@@ -430,13 +422,18 @@ |
|
|
|
async:false, |
|
|
|
success:function(json){ |
|
|
|
data = json; |
|
|
|
if(data.code==0){ |
|
|
|
alert("Join success") |
|
|
|
location.reload() |
|
|
|
if (data.code==0) { |
|
|
|
$('.alert').html('{{.i18n.Tr "repo.computing.success"}}').removeClass('alert-danger').addClass('alert-success').show().delay(1500).fadeOut(); |
|
|
|
} else { |
|
|
|
$('.alert').html(data.error_msg).removeClass('alert-success').addClass('alert-danger').show().delay(5000).fadeOut(); |
|
|
|
} |
|
|
|
// if(data.code==0){ |
|
|
|
// alert("Join success") |
|
|
|
// location.reload() |
|
|
|
|
|
|
|
}else{ |
|
|
|
alert("Join failure") |
|
|
|
} |
|
|
|
// }else{ |
|
|
|
// alert("Join failure") |
|
|
|
// } |
|
|
|
} |
|
|
|
}); |
|
|
|
} |