|
|
@@ -6,12 +6,12 @@ block vars
|
|
|
block content
|
|
|
.content.content-alt
|
|
|
.container
|
|
|
- .row.template-page-header(ng-controller="SearchController")
|
|
|
+ .row.template-page-header
|
|
|
|
|
|
.col-md-2
|
|
|
h2
|
|
|
a(href="/templates") #{translate("templates")}
|
|
|
- .col-md-8
|
|
|
+ .col-md-8(ng-controller="SearchController")
|
|
|
form.project-search.form-horizontal(role="form")
|
|
|
.form-group.has-feedback.has-feedback-left.col-md-12
|
|
|
input.form-control.col-md-12(type='text', ng-model='searchQueryText', ng-keyup='search()', placeholder="Search template library....")
|
|
|
@@ -21,7 +21,9 @@ block content
|
|
|
style="cursor: pointer;",
|
|
|
ng-show="searchQueryText.length > 0"
|
|
|
)
|
|
|
- .col-md-12
|
|
|
+ .col-md-2(ng-controller="MissingTemplateController")
|
|
|
+ a.btn.btn-primary(ng-click="showMissingTemplateModal()") #{translate("missing_template_question")}
|
|
|
+ .col-md-12(ng-cloak)
|
|
|
ul.list-unstyled
|
|
|
li(ng-repeat='hit in hits')
|
|
|
.thumbnail.searchResult
|
|
|
@@ -36,6 +38,7 @@ block content
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
.row
|
|
|
-each tag in tags
|
|
|
-if(tag.totalNumberOfTemplates > 0)
|
|
|
@@ -57,3 +60,21 @@ block content
|
|
|
|
|
|
|
|
|
|
|
|
+ script(type="text/ng-template", id="missingTemplateModal")
|
|
|
+ .modal-header
|
|
|
+ button.close(
|
|
|
+ type="button"
|
|
|
+ data-dismiss="modal"
|
|
|
+ ng-click="cancel()"
|
|
|
+ ) ×
|
|
|
+ h3 #{translate("missing_template_question")}
|
|
|
+ .modal-body #{translate("tell_us_about_the_template")}
|
|
|
+ .modal-footer
|
|
|
+ button.btn.btn-default(
|
|
|
+ ng-click="cancel()",
|
|
|
+ )
|
|
|
+ span #{translate("dismiss")}
|
|
|
+ button.btn.btn-info #{translate("email_us")}
|
|
|
+
|
|
|
+
|
|
|
+
|