mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-23 01:12:27 +00:00
Clean up.
This commit is contained in:
parent
59b131f251
commit
4f3755318f
2 changed files with 6 additions and 7 deletions
|
@ -76,7 +76,7 @@ div.full-size.pdf(ng-controller="PdfController")
|
|||
i.split-screen
|
||||
// end of toolbar
|
||||
|
||||
// views
|
||||
// logs view
|
||||
.pdf-logs(ng-show="shouldShowLogs")
|
||||
.alert.alert-success(ng-show="pdf.logEntries.all.length == 0")
|
||||
| #{translate("no_errors_good_job")}
|
||||
|
@ -131,6 +131,7 @@ div.full-size.pdf(ng-controller="PdfController")
|
|||
pre(ng-bind="pdf.rawLog", ng-show="pdf.showRawLog")
|
||||
|
||||
|
||||
// non-log views (pdf and errors)
|
||||
div(ng-show="!shouldShowLogs", ng-switch on="pdf.view")
|
||||
.pdf-uncompiled(ng-switch-when="uncompiled" ng-show="!pdf.compiling")
|
||||
|
|
||||
|
@ -209,9 +210,6 @@ div.full-size.pdf(ng-controller="PdfController")
|
|||
sixpack-convert="track_changes_feature_info"
|
||||
ng-click="startFreeTrial('compile-timeout')"
|
||||
) #{translate("start_free_trial")}
|
||||
|
||||
.pdf-logs(ng-switch-when="logs")
|
||||
|
||||
// // // //
|
||||
|
||||
|
||||
|
|
|
@ -4,8 +4,10 @@ define [
|
|||
"libs/bib-log-parser"
|
||||
], (App, LogParser, BibLogParser) ->
|
||||
App.controller "PdfController", ($scope, $http, ide, $modal, synctex, event_tracking, localStorage) ->
|
||||
|
||||
autoCompile = true
|
||||
$scope.pdf.view = 'uncompiled' # uncompiled | pdf | errors
|
||||
$scope.pdf.view = 'uncompiled' # uncompiled | pdf | errors
|
||||
$scope.shouldShowLogs = false
|
||||
|
||||
$scope.$on "project:joined", () ->
|
||||
return if !autoCompile
|
||||
|
@ -62,7 +64,7 @@ define [
|
|||
else if response.status == "too-recently-compiled"
|
||||
$scope.pdf.view = 'errors'
|
||||
$scope.pdf.tooRecentlyCompiled = true
|
||||
else if response.status == "success"
|
||||
else if response.status == "success "
|
||||
$scope.pdf.view = 'pdf'
|
||||
# define the base url
|
||||
$scope.pdf.url = "/project/#{$scope.project_id}/output/output.pdf?cache_bust=#{Date.now()}"
|
||||
|
@ -186,7 +188,6 @@ define [
|
|||
"X-Csrf-Token": window.csrfToken
|
||||
}
|
||||
|
||||
$scope.shouldShowLogs = false
|
||||
$scope.toggleLogs = () ->
|
||||
$scope.shouldShowLogs = !$scope.shouldShowLogs
|
||||
|
||||
|
|
Loading…
Reference in a new issue