Improved edit log
This commit is contained in:
parent
5a6a4541aa
commit
bea0331012
@ -37,7 +37,10 @@ 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
|
||||||
a(href="/" + strings.ToLower(entry.ObjectType) + "/" + entry.ObjectID, target="_blank")= arn.GetObjectTitle(entry.ObjectType, entry.ObjectID)
|
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)
|
||||||
td.edit-log-key
|
td.edit-log-key
|
||||||
span= entry.ObjectType
|
span= entry.ObjectType
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user