From 93028e9161d8bdcd4130d93d50993580396652d5 Mon Sep 17 00:00:00 2001 From: Juan de la Cruz Date: Wed, 24 Feb 2016 15:25:59 +0100 Subject: [PATCH] add WIP document history pinned tab --- .../partials/sidebar-document-history.scss | 23 +++++++++++++++++++ .../workspace/sidebar/document_history.cljs | 7 +++--- 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/resources/styles/partials/sidebar-document-history.scss b/resources/styles/partials/sidebar-document-history.scss index 42928ffbe..c377ba8a0 100644 --- a/resources/styles/partials/sidebar-document-history.scss +++ b/resources/styles/partials/sidebar-document-history.scss @@ -42,6 +42,28 @@ width: 100%; padding: $small; + .page-actions { + align-items: center; + display: flex; + margin-left: auto; + + a { + + svg { + fill: $soft-ui-icons; + height: 15px; + margin-left: $x-small; + width: 15px; + + &:hover { + fill: $intense-ui-icons; + } + + } + + } + + } .pin-icon { cursor: pointer; @@ -93,6 +115,7 @@ } + } } diff --git a/src/uxbox/ui/workspace/sidebar/document_history.cljs b/src/uxbox/ui/workspace/sidebar/document_history.cljs index cb649d405..b836516cb 100644 --- a/src/uxbox/ui/workspace/sidebar/document_history.cljs +++ b/src/uxbox/ui/workspace/sidebar/document_history.cljs @@ -46,11 +46,12 @@ (if (= section :pinned) [:ul.history-content [:li.current - [:div.pin-icon i/pin] [:span "Current version"]] [:li - [:div.pin-icon i/pin] - [:span "Version 02/02/2016 12:33h"]]]) + [:span "Version 02/02/2016 12:33h"] + [:div.page-actions + [:a i/pencil] + [:a i/trash]]]]) (if (= section :main) [:ul.history-content [:li.current