This commit is contained in:
2020-06-17 21:44:01 +00:00
parent cb159ebb51
commit 72c24ae17a
2 changed files with 20 additions and 68 deletions

View File

@@ -55,39 +55,19 @@ app.ravLicenses = (function() {
$appList.append('<ul class="list-group">');
$.each(res, function(i, obj) {
if (obj.fetched) {
$appList.append(
"<li class='rfc-list-item-inactive list-group-item'><a href=\"#!/ravLicense/" +
"<li class='list-group-item'><a href=\"#!/ravLicense/" +
obj.id +
'">' +
"<span class='text-muted'>" +
(obj.trial
? "Trial "
: "") +
'">' +
app.utilB.genListColumn(obj.regto) +
"&nbsp;&nbsp;" +
app.utilB.genListColumn(
app.utilB.epochToShortDate(obj.created)
) +
"</span>" +
"</a></li>"
);
} else {
$appList.append(
"<li class='list-group-item'><a href=\"#!/licenseView/" +
obj.id +
'">' +
(obj.trial
? "Trial "
: "") +
app.utilB.genListColumn(obj.regto) +
"&nbsp;&nbsp;" +
app.utilB.genListColumn(
app.utilB.epochToShortDate(obj.created)
app.utilB.epochToShortDate(obj.dtCreated)
) +
"</a></li>"
);
}
});
$appList.append("</ul>");