From c82f4481e4eaf3f163d73849f6523b248c90b599 Mon Sep 17 00:00:00 2001 From: Paulo Reis Date: Fri, 24 Jun 2016 17:10:18 +0100 Subject: [PATCH] Show search results. --- services/web/app/views/contact-us-modal.jade | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/services/web/app/views/contact-us-modal.jade b/services/web/app/views/contact-us-modal.jade index f8663a87c2..012ce5365b 100644 --- a/services/web/app/views/contact-us-modal.jade +++ b/services/web/app/views/contact-us-modal.jade @@ -17,18 +17,13 @@ script(type='text/ng-template', id='supportModalTemplate') maxlength='255', tabindex='1', onkeyup='') - .contact-suggestions - p.contact-suggestion-label Have you checked our knowledge base? {{ form.subject }} + .contact-suggestions(ng-show="suggestions.length") + p.contact-suggestion-label Have you checked our knowledge base? ul.contact-suggestion-list - li: a.contact-suggestion-list-item - span Item 1 - subsection lorem - i.fa.fa-angle-right - li: a.contact-suggestion-list-item - span Item 2 - subsection dolor - i.fa.fa-angle-right - li: a.contact-suggestion-list-item - span Item 3 - subsection sit - i.fa.fa-angle-right + li(ng-repeat="suggestion in suggestions") + a.contact-suggestion-list-item(ng-href="{{ suggestion.url }}", target="_blank") + span(ng-bind-html="suggestion.name") + i.fa.fa-angle-right label.desc(ng-show="'#{getUserEmail()}'.length < 1") | #{translate("email")} .form-group(ng-show="'#{getUserEmail()}'.length < 1")