View | Details | Raw Unified | Return to bug 36039
Collapse All | Expand All

(-)a/about.pl (+6 lines)
Lines 906-909 if ( $tab eq 'history' ) { Link Here
906
    }
906
    }
907
}
907
}
908
908
909
if ( $tab eq 'database' ) {
910
    use Koha::Database::Auditor;
911
    my $db_auditor = Koha::Database::Auditor->new( { is_cli => 0 } );
912
    my $audit_diff = $db_auditor->run;
913
    $template->param( audit_diff => $audit_diff, audit_warning => $db_auditor->get_warning );
914
}
909
output_html_with_http_headers $query, $cookie, $template->output;
915
output_html_with_http_headers $query, $cookie, $template->output;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt (-1 / +13 lines)
Lines 41-46 Link Here
41
                    [% WRAPPER tab_item linktab = 1 tabname = "translations" bt_active = tab == "translations" %] <span>Translations</span> [% END %]
41
                    [% WRAPPER tab_item linktab = 1 tabname = "translations" bt_active = tab == "translations" %] <span>Translations</span> [% END %]
42
                    [% WRAPPER tab_item linktab = 1 tabname = "history" bt_active = tab == "history" %] <span>Timeline</span> [% END %]
42
                    [% WRAPPER tab_item linktab = 1 tabname = "history" bt_active = tab == "history" %] <span>Timeline</span> [% END %]
43
                    [% WRAPPER tab_item linktab = 1 tabname = "dedications" bt_active = tab == "dedications" %] <span>Dedications</span> [% END %]
43
                    [% WRAPPER tab_item linktab = 1 tabname = "dedications" bt_active = tab == "dedications" %] <span>Dedications</span> [% END %]
44
                    [% WRAPPER tab_item linktab = 1 tabname = "database" bt_active = tab == "database" %] <span>Database audit</span> [% END %]
44
                [% END %]
45
                [% END %]
45
                [% WRAPPER tab_panels %]
46
                [% WRAPPER tab_panels %]
46
                    [% SWITCH tab %]
47
                    [% SWITCH tab %]
Lines 52-57 Link Here
52
                        [% CASE 'translations' %] [% PROCESS translations_panel %]
53
                        [% CASE 'translations' %] [% PROCESS translations_panel %]
53
                        [% CASE 'history' %] [% PROCESS history_panel %]
54
                        [% CASE 'history' %] [% PROCESS history_panel %]
54
                        [% CASE 'dedications' %] [% PROCESS dedications_panel %]
55
                        [% CASE 'dedications' %] [% PROCESS dedications_panel %]
56
                        [% CASE 'database' %] [% PROCESS database_panel %]
55
                        [% CASE %] [% PROCESS about_panel %]
57
                        [% CASE %] [% PROCESS about_panel %]
56
                    [% END %]
58
                    [% END %]
57
                [% END %]
59
                [% END %]
Lines 1341-1343 Link Here
1341
        </p>
1343
        </p>
1342
    [% END # tab=dedications %]
1344
    [% END # tab=dedications %]
1343
[% END %]
1345
[% END %]
1344
- 
1346
1347
[% BLOCK database_panel %]
1348
    [% WRAPPER tab_panel tabname= "database" bt_active = 1 %]
1349
        <h2>Database audit</h2>
1350
        <p>Run the following SQL to fix the database:</p>
1351
        <code>
1352
            [% audit_diff | html %]
1353
        </code>
1354
        <p class="alert alert-warning">[% audit_warning | html %]</p>
1355
    [% END # tab=database %]
1356
[% END %]

Return to bug 36039