Merge pull request #306 from sharelatex/compile-check

Compile check
This commit is contained in:
Brian Gough
2016-08-30 11:58:04 +01:00
committed by GitHub
4 changed files with 66 additions and 5 deletions
+27 -2
View File
@@ -36,11 +36,19 @@ div.full-size.pdf(ng-controller="PdfController")
i.fa.fa-fw(ng-class="{'fa-check': draft}")
|  #{translate("fast")} 
span.subdued [draft]
li.dropdown-header #{translate("file_checks")}
li.dropdown-header #{translate("compile_time_checks")}
li
a(href, ng-click="stop_on_validation_error = true")
i.fa.fa-fw(ng-class="{'fa-check': stop_on_validation_error}")
|  #{translate("stop_on_validation_error")}
li
a(href, ng-click="stop_on_validation_error = false")
i.fa.fa-fw(ng-class="{'fa-check': !stop_on_validation_error}")
|  #{translate("ignore_validation_errors")}
li
a(href, ng-click="recompile({check:true})")
i.fa.fa-fw()
|  #{translate("run_syntax_check")}
|  #{translate("run_syntax_check_now")}
a(
href
ng-click="stop()"
@@ -105,6 +113,23 @@ div.full-size.pdf(ng-controller="PdfController")
strong #{translate("compile_error")}.
span #{translate("generic_failed_compile_message")}.
.alert.alert-danger(ng-show="pdf.failedCheck")
strong #{translate("failed_compile_check")}.
p
p.text-center(ng-show="!check")
a.text-info(
href,
ng-disabled="pdf.compiling",
ng-click="recompile({try:true})"
) #{translate("failed_compile_check_try")}
|  #{translate("failed_compile_option_or")} 
a.text-info(
href,
ng-disabled="pdf.compiling",
ng-click="recompile({force:true})"
) #{translate("failed_compile_check_ignore")}
| .
div(ng-repeat="entry in pdf.logEntries.all", ng-controller="PdfLogEntryController")
.alert(
ng-class="{\