2014-06-30 12:08:54 -04:00
|
|
|
extends ../layout
|
|
|
|
|
|
|
|
block content
|
2014-07-22 12:24:32 -04:00
|
|
|
.content.content-alt
|
2014-06-30 12:08:54 -04:00
|
|
|
.container
|
2014-07-22 12:43:17 -04:00
|
|
|
.row.template-page-header(ng-controller="SearchController")
|
2014-07-22 12:24:32 -04:00
|
|
|
|
2014-07-22 09:47:22 -04:00
|
|
|
.col-md-2
|
2014-07-22 12:24:32 -04:00
|
|
|
h2
|
|
|
|
a(href="/templates") Templates
|
2014-07-22 12:43:17 -04:00
|
|
|
.col-md-8
|
2014-07-22 09:47:22 -04:00
|
|
|
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....")
|
|
|
|
i.fa.fa-search.form-control-feedback-left
|
|
|
|
i.fa.fa-times.form-control-feedback(
|
|
|
|
ng-click="clearSearchText()",
|
|
|
|
style="cursor: pointer;",
|
|
|
|
ng-show="searchQueryText.length > 0"
|
|
|
|
)
|
2014-07-22 12:43:17 -04:00
|
|
|
.col-md-12
|
|
|
|
ul.list-unstyled
|
2014-07-22 09:47:22 -04:00
|
|
|
li(ng-repeat='hit in hits')
|
|
|
|
.thumbnail.searchResult
|
2014-07-22 12:24:32 -04:00
|
|
|
.row
|
2014-07-22 09:47:22 -04:00
|
|
|
a(ng-href='{{hit.url}}')
|
|
|
|
.col-md-3
|
2014-07-28 07:50:56 -04:00
|
|
|
img(ng-src='{{hit.image_url}}')
|
2014-07-22 12:43:17 -04:00
|
|
|
.col-md-7
|
|
|
|
h1(ng-bind-html='hit.name')
|
2014-07-22 09:47:22 -04:00
|
|
|
p(ng-bind-html='hit.description')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-07-22 12:24:32 -04:00
|
|
|
.row
|
|
|
|
-each tag in tags
|
|
|
|
-if(tag.totalNumberOfTemplates > 0)
|
2014-07-23 06:26:17 -04:00
|
|
|
.template-section-header.col-md-12
|
2014-07-22 12:24:32 -04:00
|
|
|
h2
|
|
|
|
a(href=tag.tagPagePath) #{tag.name}
|
|
|
|
.row
|
|
|
|
-each template in tag.exampleTemplates
|
|
|
|
.col-md-3.template-thumbnail
|
|
|
|
a(href=template.templatePagePath ? template.templatePagePath : template.canonicalUrl).thumbnail
|
2014-07-28 07:50:56 -04:00
|
|
|
img(src=template.thumbnailUrl)
|
2014-07-22 12:24:32 -04:00
|
|
|
div.caption
|
|
|
|
h3.txt-middle #{template.name}
|
|
|
|
|
2014-07-29 06:35:56 -04:00
|
|
|
-if(tag.totalNumberOfTemplates > 4)
|
|
|
|
.row
|
|
|
|
.col-md-12.text-center
|
|
|
|
a(href=tag.tagPagePath) View all #{tag.totalNumberOfTemplates} #{tag.name} templates »
|
2014-06-30 12:08:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|