overleaf/services/web/app/views/project/editor/history.pug

79 lines
2.5 KiB
Text
Raw Normal View History

div#history(ng-show="ui.view == 'history'")
include ./history/entriesListV1
include ./history/entriesListV2
2014-06-27 11:45:37 +00:00
2018-03-12 11:47:56 +00:00
include ./history/diffPanelV1
include ./history/previewPanelV2
2014-07-11 12:55:14 +00:00
script(type="text/ng-template", id="historyRestoreDiffModalTemplate")
2014-07-11 12:55:14 +00:00
.modal-header
button.close(
type="button"
data-dismiss="modal"
ng-click="cancel()"
) ×
2014-07-31 16:07:43 +00:00
h3 #{translate("restore")} {{diff.doc.name}}
2014-07-11 12:55:14 +00:00
.modal-body.modal-body-share
2014-10-20 14:46:42 +00:00
p !{translate("sure_you_want_to_restore_before", {filename:"<strong>{{diff.doc.name}}</strong>", date:"{{diff.start_ts | formatDate}}"})}
2014-07-11 12:55:14 +00:00
.modal-footer
button.btn.btn-default(
ng-click="cancel()",
ng-disabled="state.inflight"
2014-07-31 16:07:43 +00:00
) #{translate("cancel")}
2014-07-11 12:55:14 +00:00
button.btn.btn-danger(
ng-click="restore()",
ng-disabled="state.inflight"
)
2014-07-31 16:07:43 +00:00
span(ng-show="!state.inflight") #{translate("restore")}
span(ng-show="state.inflight") #{translate("restoring")} ...
script(type="text/ng-template", id="historyLabelTpl")
2018-08-08 12:46:43 +00:00
.history-label(
ng-class="{ 'history-label-own' : $ctrl.isOwnedByCurrentUser }"
)
2018-08-08 12:46:43 +00:00
span.history-label-comment(
tooltip-append-to-body="true"
tooltip-template="'historyLabelTooltipTpl'"
tooltip-placement="left"
tooltip-enable="$ctrl.showTooltip"
)
i.fa.fa-tag
| &nbsp;{{ $ctrl.labelText }}
2018-08-08 12:46:43 +00:00
button.history-label-delete-btn(
ng-if="$ctrl.isOwnedByCurrentUser"
stop-propagation="click"
ng-click="$ctrl.onLabelDelete()"
) &times;
script(type="text/ng-template", id="historyLabelTooltipTpl")
.history-label-tooltip
p.history-label-tooltip-title
i.fa.fa-tag
| &nbsp;{{ $ctrl.labelText }}
p.history-label-tooltip-owner #{translate("history_label_created_by")} {{ $ctrl.labelOwnerName }}
time.history-label-tooltip-datetime {{ $ctrl.labelCreationDateTime | formatDate }}
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")}' }}