Improved edit log

This commit is contained in:
Eduard Urbach 2018-03-09 21:08:06 +01:00
parent 5a6a4541aa
commit bea0331012

View File

@ -37,6 +37,9 @@ component EditLog(entries []*arn.EditLogEntry, user *arn.User)
.edit-log-user .edit-log-user
Avatar(entry.User()) Avatar(entry.User())
td.edit-log-object td.edit-log-object
if strings.HasPrefix(arn.GetObjectTitle(entry.ObjectType, entry.ObjectID), "<not found:")
span= arn.GetObjectTitle(entry.ObjectType, entry.ObjectID)
else
a(href="/" + strings.ToLower(entry.ObjectType) + "/" + entry.ObjectID, target="_blank")= arn.GetObjectTitle(entry.ObjectType, entry.ObjectID) a(href="/" + strings.ToLower(entry.ObjectType) + "/" + entry.ObjectID, target="_blank")= arn.GetObjectTitle(entry.ObjectType, entry.ObjectID)
td.edit-log-key td.edit-log-key
span= entry.ObjectType span= entry.ObjectType