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
|
2014-07-16 08:36:02 -04:00
|
|
|
span(ng-hide="problemTalkingToTemplateApi")
|
|
|
|
form()
|
|
|
|
label(for='Description') Template Description
|
|
|
|
.form-group
|
|
|
|
textarea.form-control(
|
|
|
|
rows=5,
|
|
|
|
name='Description',
|
2014-07-16 09:18:28 -04:00
|
|
|
ng-model="templateDetails.description",
|
2014-07-16 08:36:02 -04:00
|
|
|
ng-blur="updateProjectDescription()",
|
|
|
|
value=""
|
|
|
|
)
|
2014-07-16 09:18:28 -04:00
|
|
|
div(ng-show="templateDetails.exists").text-center.templateDetails
|
2014-07-16 08:36:02 -04:00
|
|
|
| Your project was last published at
|
2014-07-16 09:18:28 -04:00
|
|
|
strong {{templateDetails.publishedDate}}.
|
|
|
|
a(ng-href="{{templateDetails.canonicalUrl}}") View it in template gallery.
|
2014-07-15 12:56:09 -04:00
|
|
|
|
2014-07-16 08:36:02 -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
|
|
|
|
|
|
|
|
2014-07-16 08:36:02 -04:00
|
|
|
|
|
|
|
|
|
|
|
.modal-footer(ng-hide="problemTalkingToTemplateApi")
|
2014-07-15 12:56:09 -04:00
|
|
|
button.btn.btn-default(
|
|
|
|
ng-click="cancel()",
|
2014-07-16 07:04:33 -04:00
|
|
|
ng-disabled="state.publishInflight || state.unpublishInflight"
|
2014-07-16 08:36:02 -04:00
|
|
|
)
|
|
|
|
span Cancel
|
|
|
|
|
2014-07-15 12:56:09 -04:00
|
|
|
button.btn.btn-info(
|
|
|
|
ng-click="unpublishTemplate()",
|
2014-07-16 07:04:33 -04:00
|
|
|
ng-disabled="state.publishInflight || state.unpublishInflight"
|
2014-07-16 09:18:28 -04:00
|
|
|
ng-show="templateDetails.exists"
|
2014-07-15 12:56:09 -04:00
|
|
|
)
|
|
|
|
span(ng-show="!state.unpublishInflight") Unpublish
|
|
|
|
span(ng-show="state.unpublishInflight") Unpublishing...
|
2014-07-16 08:36:02 -04:00
|
|
|
|
2014-07-15 12:56:09 -04:00
|
|
|
button.btn.btn-primary(
|
2014-07-16 07:04:33 -04:00
|
|
|
ng-click="publishTemplate()",
|
|
|
|
ng-disabled="state.publishInflight || state.unpublishInflight"
|
2014-07-15 12:56:09 -04:00
|
|
|
)
|
2014-07-16 09:18:28 -04:00
|
|
|
span(ng-show="!state.publishInflight && !templateDetails.exists") Publish
|
|
|
|
span(ng-show="!state.publishInflight && templateDetails.exists") Republish
|
2014-07-15 12:56:09 -04:00
|
|
|
span(ng-show="state.publishInflight") Publishing...
|