|
@@ -32,6 +32,7 @@ $(document).ready(function () {
|
|
|
location.href = url;
|
|
|
return false;
|
|
|
}
|
|
|
+ console.log(response.compilation_list);
|
|
|
setVersion(response.compilation_list);
|
|
|
$('#ver').modal('show');
|
|
|
}
|
|
@@ -247,10 +248,11 @@ function cleanError() {
|
|
|
function setVersion(versionData) {
|
|
|
let html = '';
|
|
|
for (let version of versionData) {
|
|
|
+ let description = version.description ? version.description : 'With supporting text below as a natural lead-in to additional content.';
|
|
|
let tmpHtml = '<div class="col-sm-6">' +
|
|
|
'<div class="card card-block">' +
|
|
|
'<h3 class="card-title">'+ version.name +'</h3>' +
|
|
|
- '<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>' +
|
|
|
+ '<p class="card-text">' + description + '</p>' +
|
|
|
'<a class="btn btn-primary" href="/boot/'+ version._id.toString() +'">开始使用</a>' +
|
|
|
'</div>' +
|
|
|
'</div>';
|