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

51 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()"
) ×
2014-07-31 12:07:43 -04:00
h3 #{translate("publish_as_template")}
2014-07-15 12:56:09 -04:00
.modal-body.modal-body-share
span(ng-hide="problemTalkingToTemplateApi")
form()
2014-07-31 12:07:43 -04:00
label(for='Description') #{translate("template_description")}
.form-group
textarea.form-control(
rows=5,
name='Description',
ng-model="templateDetails.description",
value=""
)
div(ng-show="templateDetails.exists").text-center.templateDetails
2014-07-31 12:07:43 -04:00
| #{translate("project_last_published_at")}
strong {{templateDetails.publishedDate}}.
2014-07-31 12:07:43 -04:00
a(ng-href="{{templateDetails.canonicalUrl}}") #{translate("view_in_template_gallery")}.
2014-07-15 12:56:09 -04:00
2014-07-31 12:07:43 -04:00
span(ng-show="problemTalkingToTemplateApi") #{translate("problem_talking_to_publishing_service")}.
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"
)
2014-07-31 12:07:43 -04:00
span #{translate("cancel")}
2014-07-15 12:56:09 -04:00
button.btn.btn-info(
ng-click="unpublishTemplate()",
ng-disabled="state.publishInflight || state.unpublishInflight"
ng-show="templateDetails.exists"
2014-07-15 12:56:09 -04:00
)
2014-07-31 12:07:43 -04:00
span(ng-show="!state.unpublishInflight") #{translate("unpublish")}
span(ng-show="state.unpublishInflight") #{translate("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
)
2014-07-31 12:07:43 -04:00
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")}...