Merge pull request #864 from sharelatex/pr-history-restore-placeholder

Add a placeholder "restore" button, showing a tooltip.
This commit is contained in:
Paulo Jorge Reis 2018-08-30 11:25:25 +01:00 committed by GitHub
commit 4be364cd93
2 changed files with 17 additions and 2 deletions

View file

@ -30,6 +30,13 @@
i.fa.fa-exchange
|  #{translate("compare_to_another_version")}
button.history-toolbar-btn-danger.pull-right(
tooltip-html="'<p>This feature is still in progress. Please use copy and paste to restore your files.</p><p>More restore options are coming soon.</p>'"
tooltip-placement="bottom"
)
i.fa.fa-undo
| &nbsp;#{translate("restore_to_before_these_changes")}
.history-toolbar-entries-list(
ng-if="!history.error"
)

View file

@ -29,15 +29,23 @@
}
.history-toolbar-actions {
flex-grow: 1;
flex-shrink: 0;
}
.history-toolbar-btn {
.history-toolbar-btn,
.history-toolbar-btn-danger {
.btn;
.btn-info;
.btn-xs;
padding-left: @padding-small-horizontal;
padding-right: @padding-small-horizontal;
margin-right: (@line-height-computed / 2);
}
.history-toolbar-btn {
.btn-info;
}
.history-toolbar-btn-danger {
.btn-danger;
opacity: 0.65;
}
.history-toolbar-entries-list {
flex: 0 0 @changesListWidth;
padding: 0 10px;