Replace table in eventlog with custom elements

This commit is contained in:
Johannes Zellner
2025-11-20 15:43:31 +01:00
parent 89f5e87601
commit fb2ce06621
2 changed files with 38 additions and 33 deletions
+1 -6
View File
@@ -155,11 +155,6 @@ function eventlogDetails(eventLog, app = null, appIdContext = '') {
return pre + (app.label || app.fqdn || app.subdomain) + ' (' + app.manifest.title + ') ';
}
function eventBy() {
if (eventLog.source && eventLog.source.username) return ' by ' + eventLog.source.username;
return '';
}
switch (eventLog.action) {
case ACTION_ACTIVATE:
return 'Cloudron was activated';
@@ -234,7 +229,7 @@ function eventlogDetails(eventLog, app = null, appIdContext = '') {
case ACTION_APP_INSTALL:
if (!data.app) return '';
return data.app.manifest.title + ' (package v' + data.app.manifest.version + ') was installed ' + appName('at', data.app) + eventBy();
return data.app.manifest.title + ' (package v' + data.app.manifest.version + ') was installed ' + appName('at', data.app);
case ACTION_APP_RESTORE:
if (!data.app) return '';