overleaf/services/web/app/views/project/editor/publish-template.jade

52 lines
1.7 KiB
Text
Raw Normal View History

2014-07-15 12:56:09 -04:00
script(type="text/ng-template", id="publishProjectAsTemplateModalTemplate")
.modal-header
button.close(
type="button"
data-dismiss="modal"
ng-click="cancel()"
) ×
h3 Publish as Template
.modal-body.modal-body-share
span(ng-hide="problemTalkingToTemplateApi")
form()
label(for='Description') Template Description
.form-group
textarea.form-control(
rows=5,
name='Description',
ng-model="template.description",
ng-blur="updateProjectDescription()",
value=""
)
div(ng-show="publishedDetails.exists").text-center.publishedDetails
| Your project was last published at
strong {{publishedDetails.publishedDate}}.
a(ng-href="{{publishedDetails.canonicalUrl}}") View it in template gallery.
2014-07-15 12:56:09 -04:00
span(ng-show="problemTalkingToTemplateApi") There is a problem with our publishing service, please try again in a few minutes.
2014-07-15 12:56:09 -04:00
.modal-footer(ng-hide="problemTalkingToTemplateApi")
2014-07-15 12:56:09 -04:00
button.btn.btn-default(
ng-click="cancel()",
ng-disabled="state.publishInflight || state.unpublishInflight"
)
span Cancel
2014-07-15 12:56:09 -04:00
button.btn.btn-info(
ng-click="unpublishTemplate()",
ng-disabled="state.publishInflight || state.unpublishInflight"
2014-07-15 12:56:09 -04:00
ng-show="publishedDetails.exists"
)
span(ng-show="!state.unpublishInflight") Unpublish
span(ng-show="state.unpublishInflight") Unpublishing...
2014-07-15 12:56:09 -04:00
button.btn.btn-primary(
ng-click="publishTemplate()",
ng-disabled="state.publishInflight || state.unpublishInflight"
2014-07-15 12:56:09 -04:00
)
span(ng-show="!state.publishInflight && !publishedDetails.exists") Publish
span(ng-show="!state.publishInflight && publishedDetails.exists") Republish
span(ng-show="state.publishInflight") Publishing...