1/*
2 * DokuWiki Bootstrap3 Template: Plugins Hacks!
3 *
4 * Home     http://dokuwiki.org/template:bootstrap3
5 * Author   Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
6 * License  GPL 2 (http://www.gnu.org/licenses/gpl.html)
7 */
8
9// Publish Plugin
10
11var $publish = jQuery('.approval');
12
13if ($publish.length) {
14
15    $publish.prependTo('.page');
16
17    $publish.removeClass('approval').addClass('alert');
18
19    jQuery('.apr_table').removeClass('table-striped');
20
21    if ($publish.hasClass('approved_no')) {
22        $publish.removeClass('approved_no')
23            .addClass('alert-warning')
24            .prepend('<span class="iconify mr-2" data-icon="mdi:information"/>');
25    }
26    if ($publish.hasClass('approved_yes')) {
27        $publish.removeClass('approved_yes')
28            .addClass('alert-success')
29            .prepend('<span class="iconify mr-2" data-icon="mdi:check-circle"/>');
30    }
31
32}
33