Color templates in history

stable
Xavier Julián 2016-09-14 08:39:06 +02:00 committed by David Barragán Merino
parent f70296ae43
commit 61e42eb4fa
2 changed files with 20 additions and 3 deletions

View File

@ -1,9 +1,17 @@
.diff-status-wrapper
.diff-color-wrapper
span.key(
translate="ACTIVITY.FIELDS.COLOR"
)
span.diff(ng-if="vm.diff[0]") {{vm.diff[0]}}
span.diff(
ng-if="vm.diff[0]"
ng-style="{background: vm.diff[0]}"
title="{{vm.diff[0]}}"
)
tg-svg(
svg-icon="icon-arrow-right"
)
span.diff(ng-if="vm.diff[1]") {{vm.diff[1]}}
span.diff(
ng-if="vm.diff[1]"
ng-style="{background: vm.diff[1]}"
title="{{vm.diff[1]}}"
)

View File

@ -25,4 +25,13 @@
background: rgba($red-light, .3);
}
}
.diff-color-wrapper {
align-items: center;
display: flex;
.diff {
display: inline-block;
height: 1.2rem;
width: 1.2rem;
}
}
}