Improved long name rendering in edit logs

This commit is contained in:
Eduard Urbach 2018-04-16 23:06:59 +02:00
parent b3473be89a
commit d740cd0ddc
2 changed files with 8 additions and 5 deletions

View File

@ -59,26 +59,26 @@ component EditLogScrollable(entries []*arn.EditLogEntry, user *arn.User)
if arn.GetObjectTitle(entry.ObjectType, entry.ObjectID) == ""
.edit-log-empty empty
else if strings.HasPrefix(arn.GetObjectTitle(entry.ObjectType, entry.ObjectID), "<not found:")
span= arn.GetObjectTitle(entry.ObjectType, entry.ObjectID)
span.clip-long-text= arn.GetObjectTitle(entry.ObjectType, entry.ObjectID)
else
a(href=arn.GetObjectLink(entry.ObjectType, entry.ObjectID), target="_blank")= arn.GetObjectTitle(entry.ObjectType, entry.ObjectID)
a.clip-long-text(href=arn.GetObjectLink(entry.ObjectType, entry.ObjectID), target="_blank")= arn.GetObjectTitle(entry.ObjectType, entry.ObjectID)
.edit-log-key
span= entry.ObjectType
if entry.Key != ""
span= "." + entry.Key
span.clip-long-text= "." + entry.Key
.edit-log-value(title=entry.OldValue)
if entry.OldValue == ""
.edit-log-empty empty
else
span= entry.OldValue
span.clip-long-text= entry.OldValue
.edit-log-value(title=entry.NewValue)
if entry.NewValue == ""
.edit-log-empty empty
else
span= entry.NewValue
span.clip-long-text= entry.NewValue
.edit-log-date.utc-date(data-date=entry.Created)

View File

@ -39,6 +39,9 @@
display flex
align-items center
flex 1 1 150px
overflow hidden
.clip-long-text
clip-long-text
.edit-log-icon