mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Disabled pdf download if not available
This commit is contained in:
parent
f86c9cf853
commit
83666be910
2 changed files with 23 additions and 5 deletions
|
@ -6,12 +6,27 @@ aside#left-menu.full-size(
|
||||||
|
|
||||||
ul.unformatted-list.nav.nav-downloads
|
ul.unformatted-list.nav.nav-downloads
|
||||||
li
|
li
|
||||||
a(ng-href="/project/{{project_id}}/download/zip")
|
a(
|
||||||
|
ng-href="/project/{{project_id}}/download/zip"
|
||||||
|
target="_blank"
|
||||||
|
)
|
||||||
i.fa.fa-file-archive-o.fa-2x
|
i.fa.fa-file-archive-o.fa-2x
|
||||||
br
|
br
|
||||||
| Source
|
| Source
|
||||||
li
|
li
|
||||||
a(ng-href="/project/{{project_id}}/output/output.pdf")
|
a(
|
||||||
|
ng-href="/project/{{project_id}}/{{pdf.url}}"
|
||||||
|
target="_blank"
|
||||||
|
ng-if="pdf.url"
|
||||||
|
)
|
||||||
|
i.fa.fa-file-pdf-o.fa-2x
|
||||||
|
br
|
||||||
|
| PDF
|
||||||
|
div.pdf-disabled(
|
||||||
|
ng-if="!pdf.url"
|
||||||
|
tooltip="Please compile your project before downloading the PDF"
|
||||||
|
tooltip-placement="bottom"
|
||||||
|
)
|
||||||
i.fa.fa-file-pdf-o.fa-2x
|
i.fa.fa-file-pdf-o.fa-2x
|
||||||
br
|
br
|
||||||
| PDF
|
| PDF
|
||||||
|
|
|
@ -42,12 +42,15 @@
|
||||||
background-color: @link-color;
|
background-color: @link-color;
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
.pdf-disabled {
|
||||||
|
color: @gray-light;
|
||||||
|
}
|
||||||
i {
|
i {
|
||||||
margin-bottom: (@line-height-computed / 4);
|
margin-bottom: (@line-height-computed / 4);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
form.settings {
|
form.settings {
|
||||||
label {
|
label {
|
||||||
|
|
Loading…
Reference in a new issue