|
|
@@ -135,11 +135,11 @@ |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="ui sixteen wide mobile six wide tablet four wide computer column"> |
|
|
|
<!-- {{if .CanCreateOrgRepo}} --> |
|
|
|
<div class=" ui bottom attached segment text center noborder text center" > |
|
|
|
<div class=" ui bottom attached segment text center noborder text center" > |
|
|
|
{{if .IsSigned}} |
|
|
|
<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}} --> |
|
|
|
{{end}} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@@ -204,7 +204,9 @@ |
|
|
|
{{end}} |
|
|
|
|
|
|
|
<div class="ui bottom attached segment text center noborder"> |
|
|
|
<a class="ui blue basic button" onclick="jion_course_team()" style="width: 80%;"> <i class="ri-user-add-line"></i> {{.i18n.Tr "org.teams.join_teams"}}</a> |
|
|
|
{{if .IsSigned}} |
|
|
|
<a class="ui blue basic button" onclick="jion_course_team()" style="width: 80%;"> <i class="ri-user-add-line"></i> {{.i18n.Tr "org.teams.join_teams"}}</a> |
|
|
|
{{end}} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{{if .IsOrganizationMember}} |
|
|
@@ -424,6 +426,7 @@ |
|
|
|
document.getElementById("recommend").innerHTML=rec +" : "+ show_num |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
function jion_course_team(){ |
|
|
|
$.ajax({ |
|
|
|
type:"GET", |
|
|
@@ -437,15 +440,11 @@ |
|
|
|
} else { |
|
|
|
$('.alert').html(data.error_msg).removeClass('alert-success').addClass('alert-danger').show().delay(5000).fadeOut(); |
|
|
|
} |
|
|
|
location.reload() |
|
|
|
// if(data.code==0){ |
|
|
|
// alert("Join success") |
|
|
|
// location.reload() |
|
|
|
|
|
|
|
// }else{ |
|
|
|
// alert("Join failure") |
|
|
|
// } |
|
|
|
} |
|
|
|
}); |
|
|
|
setTimeout("location.reload()",2000); |
|
|
|
}, |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
</script> |