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 1339-1342 Link Here
1339
            mother of Simon and Jeremy, and grandmother of Ben, Toby, Anna, Charlotte and Billy.
1341
            mother of Simon and Jeremy, and grandmother of Ben, Toby, Anna, Charlotte and Billy.
1340
        </p>
1342
        </p>
1341
    [% END # tab=dedications %]
1343
    [% END # tab=dedications %]
1344
[% END %]
1345
1346
[% BLOCK database_panel %]
1347
    [% WRAPPER tab_panel tabname= "database" bt_active = 1 %]
1348
        <h2>Database audit</h2>
1349
        <p>Run the following SQL to fix the database:</p>
1350
        <code>
1351
            [% audit_diff | html %]
1352
        </code>
1353
        <p class="alert alert-warning">[% audit_warning | html %]</p>
1354
    [% END # tab=database %]
1342
[% END %]
1355
[% END %]
1343
- 

Return to bug 36039