<commit_before><?php
echo $this->Html->css('AdminLTE./plugins/datatables/dataTables.bootstrap', ['block' => 'css']);
echo $this->Html->script(
    [
        'AdminLTE./plugins/datatables/jquery.dataTables.min',
        'AdminLTE./plugins/datatables/dataTables.bootstrap.min',
        'Menu.datatables.init'
    ],
    [
        'block' => 'scriptBotton'
    ]
);
?>
<section class="content-header">
    <div class="row">
        <div class="col-xs-12 col-md-6">
            <h4><?= $this->Html->link(__('Menu'), ['action' => 'index']) . ' &raquo; ' . h($navMenu->name) ?></h4>
        </div>
    </div>
</section>
<section class="content">
    <div class="row">
        <div class="col-md-6">
            <div class="box box-solid">
                <div class="box-header with-border">
                    <i class="fa fa-info-circle"></i>
                    <h3 class="box-title">Details</h3>
                </div>
                <div class="box-body">
                    <dl class="dl-horizontal">
                        <dt><?= __('Name') ?></dt>
                        <dd><?= h($navMenu->name) ?></dd>
                        <dt><?= __('Active') ?></dt>
                        <dd><?= $navMenu->active ? __('Yes') : __('No') ?></dd>
                        <dt><?= __('Default') ?></dt>
                        <dd><?= $navMenu->default ? __('Yes') : __('No') ?></dd>
                    </dl>
                </div>
            </div>
        </div>
    </div>
    <?php if (!empty($navMenu->menu_items)) : ?>
    <div class="box box-solid">
        <div class="box-header with-border">
            <h3 class="box-title"><?= __('Related Menu Items') ?></h3>
        </div>
        <div class="box-body">
            <table class="table table-hover table-condensed table-vertical-align table-datatable">
                <thead>
                    <tr>
                        <th><?= __('Label') ?></th>
                        <th><?= __('Icon') ?></th>
                        <th><?= __('Type') ?></th>
                        <th><?= __('URL') ?></th>
                        <th><?= __('New Window') ?></th>
                        <th class="actions"><?= __('Actions') ?></th>
                    </tr>
                </thead>
                <tbody>
                <?php foreach ($navMenu->menu_items as $menuItem) : ?>
                    <tr>
                        <td><?= $menuItem->node ?></td>
                        <td><i class="fa fa-<?= h($menuItem->icon) ?>"></i></td>
                        <td><?= h($menuItem->type) ?></td>
                        <td><?= $menuItem->url ?
                            $this->Html->link($menuItem->url, $menuItem->url, ['target' => '_blank']) :
                            ''
                        ?></td>
                        <td><?= $menuItem->new_window ? __('Yes') : __('No') ?></td>
                        <td class="actions">
                            <div class="btn-toolbar" role="toolbar">
                                <div class="btn-group btn-group-xs" role="group">
                                <?= $this->Html->link(
                                    '<i class="fa fa-pencil"></i>',
                                    ['controller' => 'MenuItems', 'action' => 'edit', $menuItem->id],
                                    ['title' => __('Edit'), 'class' => 'btn btn-default', 'escape' => false]
                                ) ?>
                                <?= $this->Form->postLink(
                                    '<i class="fa fa-trash"></i>',
                                    ['controller' => 'MenuItems', 'action' => 'delete', $menuItem->id],
                                    [
                                        'confirm' => __('Are you sure you want to delete # {0}?', $menuItem->label),
                                        'title' => __('Delete'),
                                        'class' => 'btn btn-default',
                                        'escape' => false
                                    ]
                                ) ?>
                                </div>
                                <?php if ($menuItem->parent_id) : ?>
                                <div class="btn-group btn-group-xs" role="group">
                                    <?= $this->Form->postLink(
                                        '<i class="fa fa-arrow-up"></i>',
                                        ['controller' => 'MenuItems', 'action' => 'moveNode', $menuItem->id, 'up'],
                                        ['title' => __('Move up'), 'class' => 'btn btn-default', 'escape' => false]
                                    ) ?>
                                    <?= $this->Form->postLink(
                                        '<i class="fa fa-arrow-down"></i>',
                                        ['controller' => 'MenuItems', 'action' => 'moveNode', $menuItem->id, 'down'],<commit_msg>Add link to url only if item type is not 'module' (task #809)<commit_after><?php
echo $this->Html->css('AdminLTE./plugins/datatables/dataTables.bootstrap', ['block' => 'css']);
echo $this->Html->script(
    [
        'AdminLTE./plugins/datatables/jquery.dataTables.min',
        'AdminLTE./plugins/datatables/dataTables.bootstrap.min',
        'Menu.datatables.init'
    ],
    [
        'block' => 'scriptBotton'
    ]
);
?>
<section class="content-header">
    <div class="row">
        <div class="col-xs-12 col-md-6">
            <h4><?= $this->Html->link(__('Menu'), ['action' => 'index']) . ' &raquo; ' . h($navMenu->name) ?></h4>
        </div>
    </div>
</section>
<section class="content">
    <div class="row">
        <div class="col-md-6">
            <div class="box box-solid">
                <div class="box-header with-border">
                    <i class="fa fa-info-circle"></i>
                    <h3 class="box-title">Details</h3>
                </div>
                <div class="box-body">
                    <dl class="dl-horizontal">
                        <dt><?= __('Name') ?></dt>
                        <dd><?= h($navMenu->name) ?></dd>
                        <dt><?= __('Active') ?></dt>
                        <dd><?= $navMenu->active ? __('Yes') : __('No') ?></dd>
                        <dt><?= __('Default') ?></dt>
                        <dd><?= $navMenu->default ? __('Yes') : __('No') ?></dd>
                    </dl>
                </div>
            </div>
        </div>
    </div>
    <?php if (!empty($navMenu->menu_items)) : ?>
    <div class="box box-solid">
        <div class="box-header with-border">
            <h3 class="box-title"><?= __('Related Menu Items') ?></h3>
        </div>
        <div class="box-body">
            <table class="table table-hover table-condensed table-vertical-align table-datatable">
                <thead>
                    <tr>
                        <th><?= __('Label') ?></th>
                        <th><?= __('Icon') ?></th>
                        <th><?= __('Type') ?></th>
                        <th><?= __('URL') ?></th>
                        <th><?= __('New Window') ?></th>
                        <th class="actions"><?= __('Actions') ?></th>
                    </tr>
                </thead>
                <tbody>
                <?php foreach ($navMenu->menu_items as $menuItem) : ?>
                    <tr>
                        <td><?= $menuItem->node ?></td>
                        <td><i class="fa fa-<?= h($menuItem->icon) ?>"></i></td>
                        <td><?= h($menuItem->type) ?></td>
                        <td><?= 'module' !== $menuItem->type ?
                            $this->Html->link($menuItem->url, $menuItem->url, ['target' => '_blank']) :
                            h($menuItem->url)
                        ?></td>
                        <td><?= $menuItem->new_window ? __('Yes') : __('No') ?></td>
                        <td class="actions">
                            <div class="btn-toolbar" role="toolbar">
                                <div class="btn-group btn-group-xs" role="group">
                                <?= $this->Html->link(
                                    '<i class="fa fa-pencil"></i>',
                                    ['controller' => 'MenuItems', 'action' => 'edit', $menuItem->id],
                                    ['title' => __('Edit'), 'class' => 'btn btn-default', 'escape' => false]
                                ) ?>
                                <?= $this->Form->postLink(
                                    '<i class="fa fa-trash"></i>',
                                    ['controller' => 'MenuItems', 'action' => 'delete', $menuItem->id],
                                    [
                                        'confirm' => __('Are you sure you want to delete # {0}?', $menuItem->label),
                                        'title' => __('Delete'),
                                        'class' => 'btn btn-default',
                                        'escape' => false
                                    ]
                                ) ?>
                                </div>
                                <?php if ($menuItem->parent_id) : ?>
                                <div class="btn-group btn-group-xs" role="group">
                                    <?= $this->Form->postLink(
                                        '<i class="fa fa-arrow-up"></i>',
                                        ['controller' => 'MenuItems', 'action' => 'moveNode', $menuItem->id, 'up'],
                                        ['title' => __('Move up'), 'class' => 'btn btn-default', 'escape' => false]
                                    ) ?>
                                    <?= $this->Form->postLink(
                                        '<i class="fa fa-arrow-down"></i>',
                                        ['controller' => 'MenuItems', 'action' => 'moveNode', $menuItem->id, 'down'],
{'fraction_non_alphanumeric': 0.18761895221877192, 'fraction_numerical': 0.002504257237303416, 'mean_word_length': 1.0636626705250103, 'pattern_counts': {'":': 0, '<': 231, '<?xml version=': 0, '>': 344, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 46, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '93431', 'n_tokens_mistral': 2626, 'n_tokens_neox': 2590, 'n_words': 499}