overleaf/services/web/app/views/wiki/page.jade

43 lines
1.4 KiB
Text
Raw Normal View History

2014-07-30 10:44:03 -04:00
extends ../layout
block content
2016-03-18 07:31:50 -04:00
.content.content-alt(ng-cloak)
2014-07-30 10:44:03 -04:00
.container.wiki
.row.template-page-header
2016-03-18 07:31:50 -04:00
.col-md-8(ng-cloak)
.row
.col-xs-3.contents(ng-non-bindable)
| !{contents.content}
.col-xs-9.page
- if(typeof(settings.algolia) != "undefined" && typeof(settings.algolia.indexes) != "undefined" && typeof(settings.algolia.indexes.wiki) != "undefined")
span(ng-controller="SearchWikiController")
.row
form.project-search.form-horizontal.col-md-9(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 help 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"
)
.col-md-2
a.btn.btn-primary(ng-click="showMissingTemplateModal()") #{translate("missing_page")}
.row
.col-md-12(ng-cloak)
ul.list-unstyled
li(ng-repeat='hit in hits')
.searchResult.thumbnail
.row
.col-md-12
a(ng-href='{{hit.url}}')
span(ng-bind-html='hit.name')
.card(ng-non-bindable)
.page-header
2014-08-05 12:08:38 -04:00
h1 #{title}
| !{page.content}