forked from opensourceBIM/bimvie.ws
-
Notifications
You must be signed in to change notification settings - Fork 0
/
migrations.html
37 lines (33 loc) · 808 Bytes
/
migrations.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<div class="migrations">
<table class="table">
<thead>
<tr>
<th>Number</th>
<th>Description</th>
<th>Executed</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
<script>
function Migrations(main, serversettings) {
var othis = this;
this.show = function(){};
this.loadMigrations = function(){
Global.bimServerApi.call("AdminInterface", "getMigrations", {}, function(data){
$(".migrations table tbody tr").remove();
data.forEach(function(migration){
var tr = $("<tr>");
tr.append("<td>" + migration.number + "</td>");
tr.append("<td>" + migration.description + "</td>");
tr.append("<td>" + migration.executed + "</td>");
$(".migrations table tbody").append(tr);
});
});
};
this.close = function(){
};
this.loadMigrations();
}
</script>