Add review header item.

This commit is contained in:
Paulo Reis 2016-11-23 16:53:13 +00:00
parent 8d933d9b5f
commit 1148b00c9a
3 changed files with 23 additions and 3 deletions

View file

@ -89,11 +89,10 @@ header.toolbar.toolbar-header.toolbar-with-labels(
href, href,
ng-if="trackChangesFeatureFlag", ng-if="trackChangesFeatureFlag",
ng-class="{ active: ui.reviewPanelOpen }" ng-class="{ active: ui.reviewPanelOpen }"
tooltip="#{translate('review')}",
tooltip-placement="bottom",
ng-click="toggleReviewPanel()" ng-click="toggleReviewPanel()"
) )
| Review i.review-icon
p.toolbar-label Review
a.btn.btn-full-height( a.btn.btn-full-height(
href, href,
ng-if="permissions.admin", ng-if="permissions.admin",

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View file

@ -697,3 +697,24 @@
margin-left: -1px; margin-left: -1px;
} }
} }
.review-icon {
position: absolute;
background: url('/img/review-icon-sprite.png') top/30px no-repeat;
width: 30px;
height: 30px;
.toolbar .btn-full-height:hover & {
background-position-y: -30px;
}
.toolbar .btn-full-height.active &,
.toolbar .btn-full-height:active & {
background-position-y: -60px;
}
& + .toolbar-label {
margin-left: 34px;
}
}