summaryrefslogtreecommitdiff
path: root/public/views/shared/refresh-modal.ejs
blob: 2aa652aacc8cc1a3efd285a88181093cd9ccb810 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!-- refresh modal -->
<div class="modal fade" id="refreshModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-sm">
        <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="myModalLabel"><%= __('This page need refresh') %></h4>
            </div>
            <div class="modal-body">
                <div class="incompatible-version">
                    <h5><%= __('You have an incompatible client version.') %></h5>
                    <strong><%= __('Refresh to update.') %></strong>
                </div>
                <div class="new-version" style="display:none;">
                    <h5><%= __('New version available!') %></h5>
                    <a href="<%- serverURL %>/s/release-notes" target="_blank" rel="noopener"><%= __('See releases notes here') %></a>
                    <br>
                    <strong><%= __('Refresh to enjoy new features.') %></strong>
                </div>
                <div class="user-state-changed" style="display:none;">
                    <h5><%= __('Your user state has changed.') %></h5>
                    <strong><%= __('Refresh to load new user state.') %></strong>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" id="refreshModalRefresh"><%= __('Refresh') %></button>
            </div>
        </div>
    </div>
</div>