2020-03-02 07:33:09 -05:00
|
|
|
div#history(ng-show="ui.view == 'history' && history.updates.length > 0")
|
2018-04-27 06:22:20 -04:00
|
|
|
include ./history/entriesListV1
|
|
|
|
include ./history/entriesListV2
|
2014-06-27 07:45:37 -04:00
|
|
|
|
2018-03-12 07:47:56 -04:00
|
|
|
include ./history/diffPanelV1
|
2018-05-22 10:40:57 -04:00
|
|
|
include ./history/previewPanelV2
|
2014-07-11 08:55:14 -04:00
|
|
|
|
2020-03-02 07:33:09 -05:00
|
|
|
.full-size(ng-if="ui.view == 'history' && history.updates.length === 0 && !isHistoryLoading()")
|
|
|
|
.no-history-available
|
|
|
|
h3
|
|
|
|
| #{translate('no_history_available')}
|
2016-10-05 06:04:39 -04:00
|
|
|
script(type="text/ng-template", id="historyRestoreDiffModalTemplate")
|
2014-07-11 08:55:14 -04:00
|
|
|
.modal-header
|
|
|
|
button.close(
|
|
|
|
type="button"
|
|
|
|
data-dismiss="modal"
|
|
|
|
ng-click="cancel()"
|
2020-01-27 08:53:27 -05:00
|
|
|
aria-label="Close"
|
|
|
|
)
|
|
|
|
span(aria-hidden="true") ×
|
2014-07-31 12:07:43 -04:00
|
|
|
h3 #{translate("restore")} {{diff.doc.name}}
|
2014-07-11 08:55:14 -04:00
|
|
|
.modal-body.modal-body-share
|
2014-10-20 10:46:42 -04:00
|
|
|
p !{translate("sure_you_want_to_restore_before", {filename:"<strong>{{diff.doc.name}}</strong>", date:"{{diff.start_ts | formatDate}}"})}
|
2014-07-11 08:55:14 -04:00
|
|
|
.modal-footer
|
|
|
|
button.btn.btn-default(
|
|
|
|
ng-click="cancel()",
|
|
|
|
ng-disabled="state.inflight"
|
2014-07-31 12:07:43 -04:00
|
|
|
) #{translate("cancel")}
|
2014-07-11 08:55:14 -04:00
|
|
|
button.btn.btn-danger(
|
|
|
|
ng-click="restore()",
|
|
|
|
ng-disabled="state.inflight"
|
|
|
|
)
|
2014-07-31 12:07:43 -04:00
|
|
|
span(ng-show="!state.inflight") #{translate("restore")}
|
|
|
|
span(ng-show="state.inflight") #{translate("restoring")} ...
|
2018-08-02 10:46:42 -04:00
|
|
|
|
|
|
|
|
|
|
|
script(type="text/ng-template", id="historyLabelTpl")
|
2018-08-08 08:46:43 -04:00
|
|
|
.history-label(
|
2018-12-17 04:53:20 -05:00
|
|
|
ng-class="{\
|
|
|
|
'history-label-own' : $ctrl.isOwnedByCurrentUser,\
|
|
|
|
'history-label-pseudo-current-state': $ctrl.isPseudoCurrentStateLabel,\
|
|
|
|
}"
|
2018-08-02 10:46:42 -04:00
|
|
|
)
|
2018-08-08 08:46:43 -04:00
|
|
|
span.history-label-comment(
|
2018-08-02 10:46:42 -04:00
|
|
|
tooltip-append-to-body="true"
|
|
|
|
tooltip-template="'historyLabelTooltipTpl'"
|
|
|
|
tooltip-placement="left"
|
2018-08-08 06:01:20 -04:00
|
|
|
tooltip-enable="$ctrl.showTooltip"
|
2018-08-02 10:46:42 -04:00
|
|
|
)
|
|
|
|
i.fa.fa-tag
|
2018-12-17 04:53:20 -05:00
|
|
|
| {{ ::$ctrl.isPseudoCurrentStateLabel ? '#{translate("history_label_project_current_state")}' : $ctrl.labelText }}
|
2018-08-08 08:46:43 -04:00
|
|
|
button.history-label-delete-btn(
|
2018-12-17 04:53:20 -05:00
|
|
|
ng-if="$ctrl.isOwnedByCurrentUser && !$ctrl.isPseudoCurrentStateLabel"
|
2018-08-02 10:46:42 -04:00
|
|
|
stop-propagation="click"
|
|
|
|
ng-click="$ctrl.onLabelDelete()"
|
2020-01-27 08:53:27 -05:00
|
|
|
aria-label=translate("delete")
|
|
|
|
)
|
|
|
|
span(aria-hidden="true") ×
|
2018-08-02 10:46:42 -04:00
|
|
|
|
|
|
|
script(type="text/ng-template", id="historyLabelTooltipTpl")
|
|
|
|
.history-label-tooltip
|
|
|
|
p.history-label-tooltip-title
|
|
|
|
i.fa.fa-tag
|
|
|
|
| {{ $ctrl.labelText }}
|
2018-08-02 11:20:01 -04:00
|
|
|
p.history-label-tooltip-owner #{translate("history_label_created_by")} {{ $ctrl.labelOwnerName }}
|
2018-08-09 07:05:00 -04:00
|
|
|
time.history-label-tooltip-datetime {{ $ctrl.labelCreationDateTime | formatDate }}
|
2018-08-06 06:26:22 -04:00
|
|
|
|
|
|
|
|
|
|
|
script(type="text/ng-template", id="historyV2DeleteLabelModalTemplate")
|
|
|
|
.modal-header
|
|
|
|
h3 #{translate("history_delete_label")}
|
|
|
|
.modal-body
|
|
|
|
.alert.alert-danger(ng-show="state.error.message") {{ state.error.message}}
|
|
|
|
.alert.alert-danger(ng-show="state.error && !state.error.message") #{translate("generic_something_went_wrong")}
|
|
|
|
p.help-block(ng-if="labelDetails")
|
|
|
|
| #{translate("history_are_you_sure_delete_label")}
|
|
|
|
strong "{{ labelDetails.comment }}"
|
|
|
|
| ?
|
|
|
|
.modal-footer
|
|
|
|
button.btn.btn-default(
|
|
|
|
type="button"
|
|
|
|
ng-disabled="state.inflight"
|
|
|
|
ng-click="$dismiss()"
|
|
|
|
) #{translate("cancel")}
|
|
|
|
button.btn.btn-primary(
|
|
|
|
type="button"
|
|
|
|
ng-click="deleteLabel()"
|
|
|
|
ng-disabled="state.inflight"
|
|
|
|
) {{ state.inflight ? '#{translate("history_deleting_label")}' : '#{translate("history_delete_label")}' }}
|