mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
52 lines
No EOL
1.8 KiB
Text
52 lines
No EOL
1.8 KiB
Text
script(type="text/ng-template", id="publishProjectAsTemplateModalTemplate")
|
|
.modal-header
|
|
button.close(
|
|
type="button"
|
|
data-dismiss="modal"
|
|
ng-click="cancel()"
|
|
) ×
|
|
h3 #{translate("publish_as_template")}
|
|
.modal-body.modal-body-share
|
|
span(ng-hide="problemTalkingToTemplateApi")
|
|
form()
|
|
label(for='Description') #{translate("template_description")}
|
|
.form-group
|
|
textarea.form-control(
|
|
rows=5,
|
|
name='Description',
|
|
ng-model="templateDetails.description",
|
|
ng-blur="updateProjectDescription()",
|
|
value=""
|
|
)
|
|
div(ng-show="templateDetails.exists").text-center.templateDetails
|
|
| #{translate("project_last_published_at")}
|
|
strong {{templateDetails.publishedDate}}.
|
|
a(ng-href="{{templateDetails.canonicalUrl}}") #{translate("view_in_template_gallery")}.
|
|
|
|
span(ng-show="problemTalkingToTemplateApi") #{translate("problem_talking_to_publishing_service")}.
|
|
|
|
|
|
|
|
|
|
.modal-footer(ng-hide="problemTalkingToTemplateApi")
|
|
button.btn.btn-default(
|
|
ng-click="cancel()",
|
|
ng-disabled="state.publishInflight || state.unpublishInflight"
|
|
)
|
|
span #{translate("cancel")}
|
|
|
|
button.btn.btn-info(
|
|
ng-click="unpublishTemplate()",
|
|
ng-disabled="state.publishInflight || state.unpublishInflight"
|
|
ng-show="templateDetails.exists"
|
|
)
|
|
span(ng-show="!state.unpublishInflight") #{translate("unpublish")}
|
|
span(ng-show="state.unpublishInflight") #{translate("unpublishing")}...
|
|
|
|
button.btn.btn-primary(
|
|
ng-click="publishTemplate()",
|
|
ng-disabled="state.publishInflight || state.unpublishInflight"
|
|
)
|
|
span(ng-show="!state.publishInflight && !templateDetails.exists") #{translate("publish")}
|
|
span(ng-show="!state.publishInflight && templateDetails.exists") #{translate("republish")}
|
|
span(ng-show="state.publishInflight") #{translate("publishing")}... |