2014-06-26 11:39:52 -04:00
|
|
|
div#trackChanges(ng-show="ui.view == 'track-changes'")
|
2015-11-10 10:14:27 -05:00
|
|
|
span(ng-controller="TrackChangesPremiumPopup")
|
|
|
|
span(ng-if="versioningPopupType == 'default'")
|
2015-11-02 13:44:26 -05:00
|
|
|
.upgrade-prompt(ng-show="!project.features.versioning")
|
|
|
|
.message(ng-show="project.owner._id == user.id")
|
|
|
|
|
|
|
|
p #{translate("need_to_upgrade_for_history")}
|
|
|
|
p(ng-controller="FreeTrialModalController")
|
|
|
|
a.btn(
|
|
|
|
href
|
|
|
|
ng-class="buttonClass"
|
|
|
|
sixpack-convert="track_changes_feature_info"
|
|
|
|
ng-click="startFreeTrial('track-changes')"
|
|
|
|
) #{translate("start_free_trial")}
|
|
|
|
|
|
|
|
|
a.small(href, ng-click="toggleTrackChanges()") #{translate("cancel")}
|
|
|
|
p.small(ng-show="startedFreeTrial") #{translate("refresh_page_after_starting_free_trial")}
|
|
|
|
|
2015-11-10 10:14:27 -05:00
|
|
|
.upgrade-prompt(ng-show="!project.features.versioning", ng-if="versioningPopupType == 'longform'")
|
2015-11-02 13:44:26 -05:00
|
|
|
.message(ng-show="project.owner._id == user.id")
|
|
|
|
|
|
|
|
p Upgrade to see your Entire Project History, plus:
|
|
|
|
p.small(ng-show="startedFreeTrial") #{translate("refresh_page_after_starting_free_trial")}
|
|
|
|
h4
|
|
|
|
i.fa.fa-check
|
|
|
|
| #{translate("unlimited_projects")}
|
|
|
|
|
|
|
|
h4
|
|
|
|
i.fa.fa-check
|
|
|
|
| #{translate("collabs_per_proj", {collabcount:'Multiple'})}
|
|
|
|
|
|
|
|
h4
|
|
|
|
i.fa.fa-check
|
|
|
|
| #{translate("full_doc_history")}
|
|
|
|
|
|
|
|
h4
|
|
|
|
i.fa.fa-check
|
|
|
|
| #{translate("sync_to_dropbox")}
|
|
|
|
|
|
|
|
h4
|
|
|
|
i.fa.fa-check
|
|
|
|
| #{translate("sync_to_github")}
|
|
|
|
|
|
|
|
h4
|
|
|
|
i.fa.fa-check
|
|
|
|
|#{translate("Compile Larger Projects")}
|
|
|
|
|
|
|
|
p(ng-controller="FreeTrialModalController")
|
|
|
|
a.btn.btn-success(
|
|
|
|
href
|
|
|
|
ng-class="buttonClass"
|
|
|
|
sixpack-convert="track_changes_feature_info"
|
|
|
|
ng-click="startFreeTrial('track-changes')"
|
|
|
|
) #{translate("start_free_trial")}
|
|
|
|
|
2015-02-18 12:50:14 -05:00
|
|
|
|
2014-07-03 06:18:15 -04:00
|
|
|
.message(ng-show="project.owner._id != user.id")
|
2014-07-31 12:07:43 -04:00
|
|
|
p #{translate("ask_proj_owner_to_upgrade_for_history")}
|
2015-02-18 12:50:14 -05:00
|
|
|
p
|
|
|
|
a.small(href, ng-click="toggleTrackChanges()") #{translate("cancel")}
|
2014-07-03 06:18:15 -04:00
|
|
|
|
2014-06-26 12:22:06 -04:00
|
|
|
aside.change-list(
|
|
|
|
ng-controller="TrackChangesListController"
|
2014-06-27 10:45:14 -04:00
|
|
|
infinite-scroll="loadMore()"
|
|
|
|
infinite-scroll-disabled="trackChanges.loading || trackChanges.atEnd"
|
|
|
|
infinite-scroll-initialize="ui.view == 'track-changes'"
|
2014-06-26 12:22:06 -04:00
|
|
|
)
|
2014-06-27 10:45:14 -04:00
|
|
|
.infinite-scroll-inner
|
|
|
|
ul.list-unstyled(
|
2014-06-26 11:39:52 -04:00
|
|
|
ng-class="{\
|
2014-06-27 10:45:14 -04:00
|
|
|
'hover-state': trackChanges.hoveringOverListSelectors\
|
2014-06-26 11:39:52 -04:00
|
|
|
}"
|
|
|
|
)
|
2014-06-27 10:45:14 -04:00
|
|
|
li.change(
|
|
|
|
ng-repeat="update in trackChanges.updates"
|
|
|
|
ng-class="{\
|
|
|
|
'first-in-day': update.meta.first_in_day,\
|
|
|
|
'selected': update.inSelection,\
|
|
|
|
'selected-to': update.selectedTo,\
|
|
|
|
'selected-from': update.selectedFrom,\
|
|
|
|
'hover-selected': update.inHoverSelection,\
|
|
|
|
'hover-selected-to': update.hoverSelectedTo,\
|
|
|
|
'hover-selected-from': update.hoverSelectedFrom,\
|
|
|
|
}"
|
|
|
|
ng-controller="TrackChangesListItemController"
|
|
|
|
)
|
|
|
|
|
|
|
|
div.day(ng-show="update.meta.first_in_day") {{ update.meta.end_ts | relativeDate }}
|
2014-06-26 11:39:52 -04:00
|
|
|
|
2014-06-27 10:45:14 -04:00
|
|
|
div.selectors
|
|
|
|
div.range
|
|
|
|
form
|
|
|
|
input.selector-from(
|
|
|
|
type="radio"
|
|
|
|
name="fromVersion"
|
|
|
|
ng-model="update.selectedFrom"
|
|
|
|
ng-value="true"
|
|
|
|
ng-mouseover="mouseOverSelectedFrom()"
|
|
|
|
ng-mouseout="mouseOutSelectedFrom()"
|
|
|
|
ng-show="update.afterSelection || update.inSelection"
|
|
|
|
)
|
|
|
|
form
|
|
|
|
input.selector-to(
|
|
|
|
type="radio"
|
|
|
|
name="toVersion"
|
|
|
|
ng-model="update.selectedTo"
|
|
|
|
ng-value="true"
|
|
|
|
ng-mouseover="mouseOverSelectedTo()"
|
|
|
|
ng-mouseout="mouseOutSelectedTo()"
|
|
|
|
ng-show="update.beforeSelection || update.inSelection"
|
|
|
|
)
|
2014-06-26 11:39:52 -04:00
|
|
|
|
2014-06-27 10:45:14 -04:00
|
|
|
div.description(ng-click="select()")
|
|
|
|
div.time {{ update.meta.end_ts | formatDate:'h:mm a' }}
|
|
|
|
div.docs(ng-repeat="(doc_id, doc) in update.docs")
|
|
|
|
span.doc {{ doc.entity.name }}
|
|
|
|
div.users
|
|
|
|
div.user(ng-repeat="update_user in update.meta.users")
|
2015-09-10 09:35:09 -04:00
|
|
|
.color-square(ng-if="update_user != null", ng-style="{'background-color': 'hsl({{ update_user.hue }}, 70%, 50%)'}")
|
|
|
|
.color-square(ng-if="update_user == null", ng-style="{'background-color': 'hsl(100, 70%, 50%)'}")
|
2015-09-14 07:27:27 -04:00
|
|
|
.name(ng-if="update_user && update_user.id != user.id" ng-bind="displayName(update_user)")
|
|
|
|
.name(ng-if="update_user && update_user.id == user.id") You
|
2015-09-10 09:35:09 -04:00
|
|
|
.name(ng-if="update_user == null") #{translate("anonymous")}
|
2014-07-03 10:05:35 -04:00
|
|
|
div.user(ng-if="update.meta.users.length == 0")
|
|
|
|
.color-square(style="background-color: hsl(100, 100%, 50%)")
|
2014-07-31 12:07:43 -04:00
|
|
|
span #{translate("anonymous")}
|
2014-06-26 11:39:52 -04:00
|
|
|
|
2014-06-27 10:45:14 -04:00
|
|
|
.loading(ng-show="trackChanges.loading")
|
|
|
|
i.fa.fa-spin.fa-refresh
|
2014-07-31 12:07:43 -04:00
|
|
|
| #{translate("loading")}...
|
2014-06-27 07:45:37 -04:00
|
|
|
|
2014-07-11 08:55:14 -04:00
|
|
|
.diff-panel.full-size(ng-controller="TrackChangesDiffController")
|
|
|
|
.diff(
|
|
|
|
ng-show="!!trackChanges.diff && !trackChanges.diff.loading && !trackChanges.diff.deleted && !trackChanges.diff.error"
|
2014-06-27 07:45:37 -04:00
|
|
|
)
|
2014-07-11 08:55:14 -04:00
|
|
|
.toolbar.toolbar-alt
|
2014-07-11 11:34:12 -04:00
|
|
|
span.name
|
|
|
|
| <strong>{{trackChanges.diff.highlights.length}} </strong>
|
|
|
|
ng-pluralize(
|
|
|
|
count="trackChanges.diff.highlights.length",
|
|
|
|
when="{\
|
|
|
|
'one': 'change',\
|
|
|
|
'other': 'changes'\
|
|
|
|
}"
|
|
|
|
)
|
|
|
|
| in <strong>{{trackChanges.diff.doc.name}}</strong>
|
2014-07-11 08:55:14 -04:00
|
|
|
.toolbar-right
|
|
|
|
a.btn.btn-danger.btn-sm(
|
|
|
|
href,
|
|
|
|
ng-click="openRestoreDiffModal()"
|
2014-07-31 12:07:43 -04:00
|
|
|
) #{translate("restore_to_before_these_changes")}
|
2014-07-11 08:55:14 -04:00
|
|
|
.diff-editor.hide-ace-cursor(
|
|
|
|
ace-editor="track-changes",
|
|
|
|
theme="settings.theme",
|
|
|
|
font-size="settings.fontSize",
|
|
|
|
text="trackChanges.diff.text",
|
|
|
|
highlights="trackChanges.diff.highlights",
|
|
|
|
read-only="true",
|
2014-07-11 11:17:59 -04:00
|
|
|
resize-on="layout:main:resize",
|
|
|
|
navigate-highlights="true"
|
2014-07-11 08:55:14 -04:00
|
|
|
)
|
2014-06-27 12:11:26 -04:00
|
|
|
.diff-deleted.text-centered(
|
|
|
|
ng-show="trackChanges.diff.deleted"
|
|
|
|
)
|
2014-08-07 09:31:03 -04:00
|
|
|
p.text-serif #{translate("file_has_been_deleted", {filename:"{{ trackChanges.diff.doc.name }} "})}
|
2014-07-31 12:07:43 -04:00
|
|
|
|
2014-07-11 08:55:14 -04:00
|
|
|
p
|
2014-06-27 12:11:26 -04:00
|
|
|
a.btn.btn-primary.btn-lg(
|
|
|
|
href,
|
|
|
|
ng-click="restoreDeletedDoc()"
|
2014-07-31 12:07:43 -04:00
|
|
|
) #{translate("restore")}
|
2014-06-27 07:45:37 -04:00
|
|
|
.loading-panel(ng-show="trackChanges.diff.loading")
|
|
|
|
i.fa.fa-spin.fa-refresh
|
2014-07-31 12:07:43 -04:00
|
|
|
| #{translate("loading")}...
|
2014-06-27 07:45:37 -04:00
|
|
|
.error-panel(ng-show="trackChanges.diff.error")
|
2014-07-31 12:07:43 -04:00
|
|
|
.alert.alert-danger #{translate("generic_something_went_wrong")}
|
2014-07-11 08:55:14 -04:00
|
|
|
|
|
|
|
script(type="text/ng-template", id="trackChangesRestoreDiffModalTemplate")
|
|
|
|
.modal-header
|
|
|
|
button.close(
|
|
|
|
type="button"
|
|
|
|
data-dismiss="modal"
|
|
|
|
ng-click="cancel()"
|
|
|
|
) ×
|
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")} ...
|