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
|
2016-03-22 18:16:38 -04:00
|
|
|
.row.template-page-header
|
2016-03-18 07:31:50 -04:00
|
|
|
.col-md-8(ng-cloak)
|
2016-03-22 18:16:38 -04:00
|
|
|
|
|
|
|
.row
|
|
|
|
.col-xs-3.contents(ng-non-bindable)
|
2014-07-31 11:26:02 -04:00
|
|
|
| !{contents.content}
|
2016-03-23 14:23:09 -04:00
|
|
|
|
2016-03-24 05:52:19 -04:00
|
|
|
.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"
|
|
|
|
)
|
2016-03-24 07:38:56 -04:00
|
|
|
.col-md-3.text-right
|
2016-03-24 08:05:54 -04:00
|
|
|
a.btn.btn-primary(ng-click="showMissingTemplateModal()") #{translate("suggest_new_doc")}
|
2016-03-24 05:52:19 -04:00
|
|
|
|
|
|
|
.row
|
|
|
|
.col-md-12(ng-cloak)
|
2016-03-24 07:38:56 -04:00
|
|
|
a(ng-href='{{hit.url}}',ng-repeat='hit in hits').search-result.card.card-thin
|
|
|
|
span(ng-bind-html='hit.name')
|
|
|
|
div.search-result-content(ng-show="hit.content != ''", ng-bind-html='hit.content')
|
2016-03-22 18:16:38 -04:00
|
|
|
|
2016-03-24 07:38:56 -04:00
|
|
|
.card.row-spaced(ng-non-bindable)
|
2014-08-01 03:51:01 -04:00
|
|
|
.page-header
|
2014-08-05 12:08:38 -04:00
|
|
|
h1 #{title}
|
2014-08-01 03:51:01 -04:00
|
|
|
|
2016-03-24 08:05:54 -04:00
|
|
|
| !{page.content}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
script(type="text/ng-template", id="missingWikiPageModal")
|
|
|
|
.modal-header
|
|
|
|
button.close(
|
|
|
|
type="button"
|
|
|
|
data-dismiss="modal"
|
|
|
|
ng-click="close()"
|
|
|
|
) ×
|
|
|
|
h3 #{translate("suggest_new_doc")}
|
|
|
|
.modal-body.contact-us-modal
|
|
|
|
span(ng-show="sent == false")
|
|
|
|
label.desc
|
|
|
|
| #{translate("email")} (#{translate("optional")})
|
|
|
|
.form-group
|
|
|
|
input.field.text.medium.span8.form-control(ng-model="form.email", ng-init="form.email = '#{getUserEmail()}'", type='email', spellcheck='false', value='', maxlength='255', tabindex='2')
|
|
|
|
label.desc
|
|
|
|
| #{translate("suggestion")}
|
|
|
|
.form-group
|
|
|
|
textarea.field.text.medium.span8.form-control(ng-model="form.message",type='text', value='', maxlength='255', tabindex='4', onkeyup='')
|
|
|
|
span(ng-show="sent")
|
|
|
|
p #{translate("request_sent_thank_you")}
|
|
|
|
.modal-footer
|
|
|
|
button.btn.btn-default(ng-click="close()")
|
|
|
|
span #{translate("dismiss")}
|
|
|
|
button.btn-success.btn(type='submit', ng-disabled="sending", ng-click="contactUs()") #{translate("contact_us")}
|
|
|
|
|