history.pug 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. div#history(ng-show="ui.view == 'history'")
  2. span
  3. .upgrade-prompt(ng-if="project.features.versioning === false && ui.view === 'history'")
  4. .message(ng-if="project.owner._id == user.id")
  5. p.text-center: strong #{translate("upgrade_to_get_feature", {feature:"full Project History"})}
  6. p.text-center.small(ng-show="startedFreeTrial") #{translate("refresh_page_after_starting_free_trial")}
  7. ul.list-unstyled
  8. li
  9. i.fa.fa-check  
  10. | #{translate("unlimited_projects")}
  11. li
  12. i.fa.fa-check  
  13. | #{translate("collabs_per_proj", {collabcount:'Multiple'})}
  14. li
  15. i.fa.fa-check  
  16. | #{translate("full_doc_history")}
  17. li
  18. i.fa.fa-check  
  19. | #{translate("sync_to_dropbox")}
  20. li
  21. i.fa.fa-check  
  22. | #{translate("sync_to_github")}
  23. li
  24. i.fa.fa-check  
  25. |#{translate("compile_larger_projects")}
  26. p.text-center(ng-controller="FreeTrialModalController")
  27. a.btn.btn-success(
  28. href
  29. ng-class="buttonClass"
  30. ng-click="startFreeTrial('history')"
  31. ) #{translate("start_free_trial")}
  32. .message(ng-show="project.owner._id != user.id")
  33. p #{translate("ask_proj_owner_to_upgrade_for_history")}
  34. p
  35. a.small(href, ng-click="toggleHistory()") #{translate("cancel")}
  36. include ./history/entriesListV1
  37. include ./history/entriesListV2
  38. include ./history/diffPanelV1
  39. include ./history/previewPanelV2
  40. script(type="text/ng-template", id="historyRestoreDiffModalTemplate")
  41. .modal-header
  42. button.close(
  43. type="button"
  44. data-dismiss="modal"
  45. ng-click="cancel()"
  46. ) ×
  47. h3 #{translate("restore")} {{diff.doc.name}}
  48. .modal-body.modal-body-share
  49. p !{translate("sure_you_want_to_restore_before", {filename:"<strong>{{diff.doc.name}}</strong>", date:"{{diff.start_ts | formatDate}}"})}
  50. .modal-footer
  51. button.btn.btn-default(
  52. ng-click="cancel()",
  53. ng-disabled="state.inflight"
  54. ) #{translate("cancel")}
  55. button.btn.btn-danger(
  56. ng-click="restore()",
  57. ng-disabled="state.inflight"
  58. )
  59. span(ng-show="!state.inflight") #{translate("restore")}
  60. span(ng-show="state.inflight") #{translate("restoring")} ...