2014-11-29 14:39:37 -05:00
|
|
|
extends /templates/core/modal-base
|
2014-04-12 00:11:52 -04:00
|
|
|
|
|
|
|
block modal-header-content
|
|
|
|
.modal-header-content
|
2016-08-23 17:36:45 -04:00
|
|
|
h3(data-i18n="resources.patch")
|
2014-04-12 00:11:52 -04:00
|
|
|
|
|
|
|
block modal-body-content
|
|
|
|
.modal-body
|
2014-04-17 17:23:33 -04:00
|
|
|
p= patch.get('commitMessage')
|
2014-06-24 17:25:01 -04:00
|
|
|
if deltaWorked
|
|
|
|
.changes-stub
|
|
|
|
else
|
|
|
|
.alert.alert-danger Could not apply this delta to the current version.
|
2014-04-12 00:11:52 -04:00
|
|
|
|
|
|
|
block modal-footer
|
|
|
|
.modal-footer
|
2016-08-23 17:36:45 -04:00
|
|
|
button(data-dismiss="modal", data-i18n="common.cancel").btn
|
2014-04-12 01:33:09 -04:00
|
|
|
if isPatchCreator
|
|
|
|
if status != 'withdrawn'
|
2016-08-23 17:36:45 -04:00
|
|
|
button.btn.btn-danger#withdraw-button(data-i18n="general.withdraw")
|
2014-04-12 01:33:09 -04:00
|
|
|
if isPatchRecipient
|
|
|
|
if status != 'accepted'
|
2016-08-23 17:36:45 -04:00
|
|
|
button.btn.btn-primary#accept-button(data-i18n="general.accept")
|
2014-04-12 01:33:09 -04:00
|
|
|
if status != 'rejected'
|
2016-08-23 17:36:45 -04:00
|
|
|
button.btn.btn-danger#reject-button(data-i18n="general.reject")
|