From fbb6f3485dbecc4dc7a495226c975705c404d6c4 Mon Sep 17 00:00:00 2001 From: Harvey Kandola Date: Wed, 29 Nov 2017 11:09:54 +0000 Subject: [PATCH] search UI --- gui/app/components/search/tag-list.js | 34 --------- gui/app/pods/search/template.hbs | 65 +++++++++------- gui/app/styles/view/search.scss | 75 +++++++++++++++++++ .../components/search/search-results.hbs | 14 ++-- .../templates/components/search/tag-list.hbs | 7 -- 5 files changed, 120 insertions(+), 75 deletions(-) delete mode 100644 gui/app/components/search/tag-list.js delete mode 100644 gui/app/templates/components/search/tag-list.hbs diff --git a/gui/app/components/search/tag-list.js b/gui/app/components/search/tag-list.js deleted file mode 100644 index 3dbf771a..00000000 --- a/gui/app/components/search/tag-list.js +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright 2016 Documize Inc. . All rights reserved. -// -// This software (Documize Community Edition) is licensed under -// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html -// -// You can operate outside the AGPL restrictions by purchasing -// Documize Enterprise Edition and obtaining a commercial license -// by contacting . -// -// https://documize.com - -import Component from '@ember/component'; - -export default Component.extend({ - documentTags: [], - tagz: [], - - init() { - this._super(...arguments); - - let tagz = []; - - if (this.get('documentTags').length > 1) { - let tags = this.get('documentTags').split('#'); - _.each(tags, function(tag) { - if (tag.length > 0) { - tagz.pushObject(tag); - } - }); - } - - this.set('tagz', tagz); - } -}); diff --git a/gui/app/pods/search/template.hbs b/gui/app/pods/search/template.hbs index 190f0c6b..5497e03c 100644 --- a/gui/app/pods/search/template.hbs +++ b/gui/app/pods/search/template.hbs @@ -1,29 +1,40 @@ -{{#layout/zone-container}} - {{#layout/zone-sidebar}} - -