<commit_before>doctype html
html
    head
        meta(charset="utf-8")
        meta(http-equiv="Content-type",    content="text/html;charset=UTF-8")
        meta(http-equiv="X-UA-Compatible", content="IE=edge,chrome=1")

        title #{title}

        //link(rel="stylesheet", href="/vendor/bootstrap/css/bootstrap.css")
        link(rel="stylesheet", href="/vendor/bootstrap-theme/css/yeti.css")
        link(rel="stylesheet", href="/vendor/font-awesome/css/font-awesome.min.css")
        link(rel="stylesheet", href="/asset/css/backend.css")

        //if lt IE 9
            script(src="/vendor/html5shiv/html5shiv.min.js")
            script(src="/vendor/respond/respond.min.js")
    body
        .d-wrapper
            div.navbar.navbar-default.navbar-fixed-top
                div.navbar-header
                    button.navbar-toggle(type="button", data-toggle="collapse", data-target="#navbar-collapse")
                        span.sr-only Toggle navigation
                        span.icon-bar
                        span.icon-bar
                        span.icon-bar
                    a.navbar-brand(href="/admin") NodeDesk

                div#navbar-collapse.collapse.navbar-collapse
                    div.d-topnav
                        block topnav

                    ul.nav.navbar-nav.navbar-right
                        li.dropdown
                            a.dropdown-toggle(href="#", data-toggle="dropdown")
                                | Hello #{sessionUser.username} &nbsp;
                                b.caret
                            ul.dropdown-menu
                                li
                                    a(href="/admin/password") Change password
                                li.divider
                                li
                                    a(href="/") Visit website
                                li
                                    a(href="/admin/signout") Sign out

            .d-main
                .d-sidebar
                    div.list-group
                        a.list-group-item(href="/admin/category")
                            i.fa.fa-tag
                            | Categories
                        a.list-group-item(href="/admin/post")
                            i.fa.fa-edit
                            | Posts
                        a.list-group-item(href="/admin/user")
                            i.fa.fa-user
                            | Users

                .d-content-wrapper
                    .d-content
                        block content

            .d-push

        footer
            small &copy; 2013 NodeDesk

        //if lt IE 9
            script(src="/vendor/jquery/jquery-1.10.2.min.js")

        //[if gte IE 9]><!
        script(src="/vendor/jquery/jquery-2.0.3.min.js")
        //<![endif]

        script(src="/vendor/bootstrap/js/bootstrap.min.js")

        script(type="text/javascript").
            $(document).ready(function() {
                // Activate menu
                $('a.list-group-item[href^="' + window.location.pathname + '"]').addClass('active');
            });

        block footerScript<commit_msg>Activate menu item based on the current URI<commit_after>doctype html
html
    head
        meta(charset="utf-8")
        meta(http-equiv="Content-type",    content="text/html;charset=UTF-8")
        meta(http-equiv="X-UA-Compatible", content="IE=edge,chrome=1")

        title #{title}

        //link(rel="stylesheet", href="/vendor/bootstrap/css/bootstrap.css")
        link(rel="stylesheet", href="/vendor/bootstrap-theme/css/yeti.css")
        link(rel="stylesheet", href="/vendor/font-awesome/css/font-awesome.min.css")
        link(rel="stylesheet", href="/asset/css/backend.css")

        //if lt IE 9
            script(src="/vendor/html5shiv/html5shiv.min.js")
            script(src="/vendor/respond/respond.min.js")
    body
        .d-wrapper
            div.navbar.navbar-default.navbar-fixed-top
                div.navbar-header
                    button.navbar-toggle(type="button", data-toggle="collapse", data-target="#navbar-collapse")
                        span.sr-only Toggle navigation
                        span.icon-bar
                        span.icon-bar
                        span.icon-bar
                    a.navbar-brand(href="/admin") NodeDesk

                div#navbar-collapse.collapse.navbar-collapse
                    div.d-topnav
                        block topnav

                    ul.nav.navbar-nav.navbar-right
                        li.dropdown
                            a.dropdown-toggle(href="#", data-toggle="dropdown")
                                | Hello #{sessionUser.username} &nbsp;
                                b.caret
                            ul.dropdown-menu
                                li
                                    a(href="/admin/password") Change password
                                li.divider
                                li
                                    a(href="/") Visit website
                                li
                                    a(href="/admin/signout") Sign out

            .d-main
                .d-sidebar
                    div.list-group
                        a.list-group-item(href="/admin/category")
                            i.fa.fa-tag
                            | Categories
                        a.list-group-item(href="/admin/post")
                            i.fa.fa-edit
                            | Posts
                        a.list-group-item(href="/admin/user")
                            i.fa.fa-user
                            | Users

                .d-content-wrapper
                    .d-content
                        block content

            .d-push

        footer
            small &copy; 2013 NodeDesk

        //if lt IE 9
            script(src="/vendor/jquery/jquery-1.10.2.min.js")

        //[if gte IE 9]><!
        script(src="/vendor/jquery/jquery-2.0.3.min.js")
        //<![endif]

        script(src="/vendor/bootstrap/js/bootstrap.min.js")

        script(type="text/javascript").
            $(document).ready(function() {
                // Activate menu item based on the current URI
                var path = window.location.pathname;
                $('a.list-group-item').each(function(index, item) {
                    if (path.substr(0, $(this).attr('href').length) == $(this).attr('href')) {
                        $(this).addClass('active');
                    }
                });
            });

        block footerScript
{'fraction_non_alphanumeric': 0.12032692598758891, 'fraction_numerical': 0.005902830331466626, 'mean_word_length': 1.0534493474207582, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6594055', 'n_tokens_mistral': 1749, 'n_tokens_neox': 1598, 'n_words': 237}