Replace table in eventlog with custom elements
This commit is contained in:
@@ -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 '';
|
||||
|
||||
Reference in New Issue
Block a user