summaryrefslogtreecommitdiff
path: root/public/views
diff options
context:
space:
mode:
authorCheng-Han, Wu2016-06-17 16:15:53 +0800
committerCheng-Han, Wu2016-06-17 16:15:53 +0800
commit4d244763164eb88638aec85d85529ea49feb0f94 (patch)
tree2418b1e4d5cf825b34be9e1f4852e2108db77f71 /public/views
parent8e351e7e33774f9c4ad15b311f8c3a4725bacfdb (diff)
Add revision modal with UIs and support to mark patch diff texts
Diffstat (limited to 'public/views')
-rw-r--r--public/views/body.ejs3
-rw-r--r--public/views/header.ejs4
-rw-r--r--public/views/revision-modal.ejs27
3 files changed, 33 insertions, 1 deletions
diff --git a/public/views/body.ejs b/public/views/body.ejs
index 62493e44..9fe1ca75 100644
--- a/public/views/body.ejs
+++ b/public/views/body.ejs
@@ -235,4 +235,5 @@
</div>
</div>
<%- include signin-modal %>
-<%- include help-modal %> \ No newline at end of file
+<%- include help-modal %>
+<%- include revision-modal %> \ No newline at end of file
diff --git a/public/views/header.ejs b/public/views/header.ejs
index bc540565..b00c2db5 100644
--- a/public/views/header.ejs
+++ b/public/views/header.ejs
@@ -28,6 +28,8 @@
</li>
<li class="divider"></li>
<li class="dropdown-header">Beta</li>
+ <li role="presentation"><a role="menuitem" class="ui-beta-revision" tabindex="-1" data-toggle="modal" data-target="#revisionModal"><i class="fa fa-history fa-fw"></i> Revision</a>
+ </li>
<li role="presentation"><a role="menuitem" class="ui-beta-pdf" tabindex="-1" href="#" target="_self"><i class="fa fa-file-pdf-o fa-fw"></i> Export PDF</a>
</li>
<li role="presentation"><a role="menuitem" class="ui-beta-slide" tabindex="-1" href="#" target="_blank"><i class="fa fa-tv fa-fw"></i> Slide Mode</a>
@@ -121,6 +123,8 @@
</a>
<ul class="dropdown-menu" role="menu" aria-labelledby="menu">
<li class="dropdown-header">Beta</li>
+ <li role="presentation"><a role="menuitem" class="ui-beta-revision" tabindex="-1" data-toggle="modal" data-target="#revisionModal"><i class="fa fa-history fa-fw"></i> Revision</a>
+ </li>
<li role="presentation"><a role="menuitem" class="ui-beta-pdf" tabindex="-1" href="#" target="_self"><i class="fa fa-file-pdf-o fa-fw"></i> Export PDF</a>
</li>
<li role="presentation"><a role="menuitem" class="ui-beta-slide" tabindex="-1" href="#" target="_blank"><i class="fa fa-tv fa-fw"></i> Slide Mode</a>
diff --git a/public/views/revision-modal.ejs b/public/views/revision-modal.ejs
new file mode 100644
index 00000000..008e62ac
--- /dev/null
+++ b/public/views/revision-modal.ejs
@@ -0,0 +1,27 @@
+<!-- revision modal -->
+<div class="modal fade" id="revisionModal" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">
+ <div class="modal-dialog modal-lg">
+ <div class="modal-content">
+ <div class="modal-header">
+ <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span>
+ </button>
+ <h4 class="modal-title" id="mySmallModalLabel"><i class="fa fa-history"></i> Revision</h4>
+ </div>
+ <div class="modal-body">
+ <div class="row">
+ <div class="col-lg-4" style="max-height: calc(100vh - 215px); overflow: auto;">
+ <div class="list-group ui-revision-list"></div>
+ </div>
+ <div class="col-lg-8" style="height: calc(100vh - 215px); overflow: hidden;">
+ <textarea id="revisionViewer" style="display:none;"></textarea>
+ </div>
+ </div>
+ </div>
+ <div class="modal-footer">
+ <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
+ <button type="button" class="btn btn-primary" id="revisionModalDownload">Download</button>
+ <button type="button" class="btn btn-danger" id="revisionModalRevert">Revert</button>
+ </div>
+ </div>
+ </div>
+</div> \ No newline at end of file