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

(-)a/about.pl (+6 lines)
Lines 926-929 sub message_broker_check { Link Here
926
    }
926
    }
927
  }
927
  }
928
928
929
if ( $tab eq 'database' ) {
930
    use Koha::Database::Auditor;
931
    my $db_auditor = Koha::Database::Auditor->new( { is_cli => 0 } );
932
    my $audit_diff = $db_auditor->run;
933
    $template->param( audit_diff => $audit_diff, audit_warning => $db_auditor->get_warning );
934
}
929
output_html_with_http_headers $query, $cookie, $template->output;
935
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 1355-1357 Link Here
1355
        </p>
1357
        </p>
1356
    [% END # tab=dedications %]
1358
    [% END # tab=dedications %]
1357
[% END %]
1359
[% END %]
1358
- 
1360
1361
[% BLOCK database_panel %]
1362
    [% WRAPPER tab_panel tabname= "database" bt_active = 1 %]
1363
        <h2>Database audit</h2>
1364
        <p>Run the following SQL to fix the database:</p>
1365
        <code>
1366
            [% audit_diff | html %]
1367
        </code>
1368
        <p class="alert alert-warning">[% audit_warning | html %]</p>
1369
    [% END # tab=database %]
1370
[% END %]

Return to bug 36039