2014-06-30 12:08:54 -04:00
|
|
|
extends ../layout
|
|
|
|
|
2014-08-11 11:20:27 -04:00
|
|
|
block vars
|
|
|
|
- var meta = "Over 400 LaTeX templates for journal articles, theses, CV and resumes, posters, presentations, and much more"
|
|
|
|
|
2014-06-30 12:08:54 -04:00
|
|
|
block content
|
2014-07-22 12:24:32 -04:00
|
|
|
.content.content-alt
|
2014-06-30 12:08:54 -04:00
|
|
|
.container
|
2014-09-01 10:13:37 -04:00
|
|
|
.row.template-page-header
|
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
|
2014-08-01 07:34:53 -04:00
|
|
|
a(href="/templates") #{translate("templates")}
|
2014-09-01 10:13:37 -04:00
|
|
|
.col-md-8(ng-controller="SearchController")
|
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-09-01 10:13:37 -04:00
|
|
|
.col-md-2(ng-controller="MissingTemplateController")
|
|
|
|
a.btn.btn-primary(ng-click="showMissingTemplateModal()") #{translate("missing_template_question")}
|
|
|
|
.col-md-12(ng-cloak)
|
2014-07-22 12:43:17 -04:00
|
|
|
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-09-01 10:13:37 -04:00
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
2014-09-01 10:13:37 -04:00
|
|
|
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")}
|
|
|
|
|
|
|
|
|
|
|
|
|