Added deletion tracking

This commit is contained in:
Eduard Urbach 2018-03-09 20:23:59 +01:00
parent f25b834552
commit 42740238e0
2 changed files with 7 additions and 1 deletions

View File

@ -20,12 +20,15 @@ component EditLog(entries []*arn.EditLogEntry, user *arn.User)
if entry.Action == "create"
.edit-log-create
RawIcon("plus")
else if entry.Action == "delete"
.edit-log-delete
RawIcon("minus")
else if entry.OldValue == "" && entry.NewValue != ""
.edit-log-add
RawIcon("plus-circle")
else if entry.OldValue != "" && entry.NewValue == ""
.edit-log-remove
RawIcon("minus")
RawIcon("minus-circle")
else
.edit-log-change
RawIcon("pencil")

View File

@ -29,6 +29,9 @@
.edit-log-remove
color red
.edit-log-delete
color red
.edit-log-change
color main-color