1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-24 15:49:44 +02:00
documize/gui/app/templates/components/document/view-revision.hbs
Harvey Kandola 62c3cd03ad [WIP] Improve master layout for different devices + product growth
We have two pressing needs:

1. Improve experience on real estate challenged devices.
2. Make room for product feature-set growth.

To hit these targets, we need to develop better UX through smarter on-screen space management.
2019-05-20 10:39:48 +01:00

34 lines
1.1 KiB
Handlebars

{{#unless revisions}}
<p>No revisions made</p>
{{/unless}}
<div class="view-revision">
{{#if hasDiff}}
<h1>{{revision.title}}</h1>
<h2>Changed by {{revision.firstname}} {{revision.lastname}}</h2>
<Ui::UiSpacer @size=200 />
<div class="diff-zone wysiwyg">
{{{diff}}}
</div>
{{/if}}
</div>
{{#if canRollback}}
<Ui::UiSpacer @size=400 />
{{ui/ui-button color=constants.Color.Red icon=constants.Icon.TimeBack light=true label=constants.Label.Restore onClick=(action "onShowModal")}}
{{/if}}
<div id="document-rollback-modal" class="modal" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">Restore Section</div>
<div class="modal-body">
<p>Are you sure you want to restore this revision?</p>
</div>
<div class="modal-footer">
{{ui/ui-button color=constants.Color.Gray light=true label=constants.Label.Cancel dismiss=true}}
{{ui/ui-button color=constants.Color.Red light=true label=constants.Label.Restore onClick=(action "onRollback")}}
</div>
</div>
</div>
</div>