index.jade 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. extends ../layout
  2. block vars
  3. - var meta = "Over 400 LaTeX templates for journal articles, theses, CV and resumes, posters, presentations, and much more"
  4. block content
  5. .content.content-alt
  6. .container
  7. .row.template-page-header(ng-controller="SearchController")
  8. .col-md-2
  9. h2
  10. a(href="/templates") #{translate("templates")}
  11. .col-md-8
  12. form.project-search.form-horizontal(role="form")
  13. .form-group.has-feedback.has-feedback-left.col-md-12
  14. input.form-control.col-md-12(type='text', ng-model='searchQueryText', ng-keyup='search()', placeholder="Search template library....")
  15. i.fa.fa-search.form-control-feedback-left
  16. i.fa.fa-times.form-control-feedback(
  17. ng-click="clearSearchText()",
  18. style="cursor: pointer;",
  19. ng-show="searchQueryText.length > 0"
  20. )
  21. .col-md-2(ng-controller="MissingTemplateController")
  22. a.btn.btn-primary(ng-click="showMissingTemplateModal()") #{translate("missing_template_question")}
  23. .col-md-8(ng-cloak)
  24. ul.list-unstyled
  25. li(ng-repeat='hit in hits')
  26. .thumbnail.searchResult
  27. .row
  28. a(ng-href='{{hit.url}}')
  29. .col-md-3
  30. img(ng-src='{{hit.image_url}}')
  31. .col-md-7
  32. h1(ng-bind-html='hit.name')
  33. p(ng-bind-html='hit.description')
  34. .row
  35. -each tag in tags
  36. -if(tag.totalNumberOfTemplates > 0)
  37. .template-section-header.col-md-12
  38. h2
  39. a(href=tag.tagPagePath) #{tag.name}
  40. .row
  41. -each template in tag.exampleTemplates
  42. .col-md-3.template-thumbnail
  43. a(href=template.templatePagePath ? template.templatePagePath : template.canonicalUrl).thumbnail
  44. img(src=template.thumbnailUrl)
  45. div.caption
  46. h3.txt-middle #{template.name}
  47. -if(tag.totalNumberOfTemplates > 4)
  48. .row
  49. .col-md-12.text-center
  50. a(href=tag.tagPagePath) View all #{tag.totalNumberOfTemplates} #{tag.name} templates »
  51. script(type="text/ng-template", id="missingTemplateModal")
  52. .modal-header
  53. button.close(
  54. type="button"
  55. data-dismiss="modal"
  56. ng-click="cancel()"
  57. ) ×
  58. h3 #{translate("missing_template_question")}
  59. .modal-body #{translate("tell_us_about_the_template")}
  60. .modal-footer
  61. button.btn.btn-default(
  62. ng-click="cancel()",
  63. )
  64. span #{translate("dismiss")}
  65. a.btn.btn-primary(href='mailto:team@sharelatex.com?Subject=template') #{translate("email_us")}