forked from mxroute/MXroute_Manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
repairdb.html.tt
43 lines (36 loc) · 1.37 KB
/
repairdb.html.tt
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
32
33
34
35
36
37
38
39
40
41
42
43
[%
SET CPANEL.CPVAR.dprefix = "../";
SET repair_db = execute("Mysql", "repair_database", { "name" => FORM.db });
%]
[% WRAPPER '_assets/master.html.tt'
app_key = 'mysql_databases'
-%]
<div class="body-content">
<h2 id="hdrRepairingDb">
[% locale.maketext("Repairing Database") %]
</h2>
<p id="descRepairingDb">
[% locale.maketext("Database “[_1]” is now being repaired.", FORM.db) %]
</p>
[% IF repair_db.status %]
<div id="repairdbSuccess" class="alert alert-success">
<span id="repairdbSuccessImg" class="glyphicon glyphicon-ok-sign"></span>
<span id="repairdbSuccessMsg" class="text">
[% locale.maketext("Repair Complete!") %]
</span>
</div>
[% ELSE %]
<div id="repairdbError" class="alert alert-danger">
<span id="repairdbErrorImg" class="glyphicon glyphicon-exclamation-sign"></span>
<span id="repairdbErrorMsg" class="text">
[% locale.maketext("There was a problem repairing the database “[_1]”.", FORM.db) %]
[% FOREACH q = repair_db.errors %]
[% q.html() %]
[% END %]
[% CPANEL.CPERROR.item('mysql').html %]
</span>
</div>
[% END %]
[% INCLUDE _assets/return_link.html.tt return_location='index.html' return_link_text=locale.maketext('Go Back') %]
</div>
[% END #wrapper -%]