<commit_before><?php

use yii\bootstrap\Nav;
use yii\helpers\Html;
use yii\bootstrap\BootstrapPluginAsset;

BootstrapPluginAsset::register($this);

echo Nav::widget([
    'items' => [
        "<li class='left-info'><b>".$model->name.'</b><br>'.
        $model->email . '<br>' .
		'Степень: '.$model->degree.'</li><hr>',

        Html::tag("li", "<a href='../lecturer/courses'><span class = 'glyphicon glyphicon-list'></span> Мои курсы</a>",
            ['class' => ($current == 'courses') ? 'active' : '']),

        Html::tag("li", "<a href='../lecturer/statistics'><span class = 'glyphicon glyphicon-stats'></span> Статистика курсов</a>",
            ['class' => ($current == 'statistics') ? 'active' : '']),

        Html::tag("li", "<a href='../lecturer/requests'><span class = 'glyphicon glyphicon-question-sign'></span> Запросы на подписку</a>",
            ['class' => ($current == 'requests') ? 'active' : '']),

        Html::tag("li", "<a href='../result/list'><span class = 'glyphicon glyphicon-list-alt'></span> Тесты (ответы)</a>", 
            ['class' => ($current == 'results') ? 'active' : '']),

        Html::tag("li", "<a href='../lecturer/profile-update'><span class = 'glyphicon glyphicon-pencil'></span> Редактировать профиль</a>",
            ['class' => ($current == 'profile-update') ? 'active' : '']),

        Html::tag("li", "<a href='#stay-here' onClick='openModal()'><span class = 'glyphicon glyphicon-info-sign'></span> Обратная связь</a>"),

        Html::tag("li", "<a href='../site/logout' data-method='post'><span class = 'glyphicon glyphicon-log-out'></span> Выйти</a>"),
    ],
    'options' => ['class' => 'nav-pills nav-stacked',
    				 'style' => 'margin:0 20px 20px 10px; padding:5px; border-radius: 4px; border:1px solid #DDDDDD; background:#fff'],
]);?>

<div class="modal fade bs-example-modal-sm" id='myModal' tabindex="-1" role="dialog" aria-labelledby="modalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                <h4 class="modal-title" id="modalLabel"></h4>
            </div>
            <div class="modal-body">
                <textarea rows=5 class="form-control" placeholder='Опишите свой вопрос или проблему' id='problem'></textarea>
            </div>
            <div class="modal-footer">
                <button id='sendMailButton' type="button" class="btn btn-primary">Отправить</button>
            </div>
        </div><commit_msg>Last fix logout link. It workssss.<commit_after><?php

use yii\bootstrap\Nav;
use yii\helpers\Html;
use yii\bootstrap\BootstrapPluginAsset;

BootstrapPluginAsset::register($this);

echo Nav::widget([
    'items' => [
        "<li class='left-info'><b>".$model->name.'</b><br>'.
        $model->email . '<br>' .
		'Степень: '.$model->degree.'</li><hr>',

        Html::tag("li", "<a href='../lecturer/courses'><span class = 'glyphicon glyphicon-list'></span> Мои курсы</a>",
            ['class' => ($current == 'courses') ? 'active' : '']),

        Html::tag("li", "<a href='../lecturer/statistics'><span class = 'glyphicon glyphicon-stats'></span> Статистика курсов</a>",
            ['class' => ($current == 'statistics') ? 'active' : '']),

        Html::tag("li", "<a href='../lecturer/requests'><span class = 'glyphicon glyphicon-question-sign'></span> Запросы на подписку</a>",
            ['class' => ($current == 'requests') ? 'active' : '']),

        Html::tag("li", "<a href='../result/list'><span class = 'glyphicon glyphicon-list-alt'></span> Тесты (ответы)</a>", 
            ['class' => ($current == 'results') ? 'active' : '']),

        Html::tag("li", "<a href='../lecturer/profile-update'><span class = 'glyphicon glyphicon-pencil'></span> Редактировать профиль</a>",
            ['class' => ($current == 'profile-update') ? 'active' : '']),

        Html::tag("li", "<a href='#stay-here' onClick='openModal()'><span class = 'glyphicon glyphicon-info-sign'></span> Обратная связь</a>"),

        Html::tag("li", "<a href='".Yii::$app->request->BaseUrl."/site/logout' data-method='post'><span class = 'glyphicon glyphicon-log-out'></span> Выйти</a>"),
    ],
    'options' => ['class' => 'nav-pills nav-stacked',
    				 'style' => 'margin:0 20px 20px 10px; padding:5px; border-radius: 4px; border:1px solid #DDDDDD; background:#fff'],
]);?>

<div class="modal fade bs-example-modal-sm" id='myModal' tabindex="-1" role="dialog" aria-labelledby="modalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                <h4 class="modal-title" id="modalLabel"></h4>
            </div>
            <div class="modal-body">
                <textarea rows=5 class="form-control" placeholder='Опишите свой вопрос или проблему' id='problem'></textarea>
            </div>
            <div class="modal-footer">
                <button id='sendMailButton' type="button" class="btn btn-primary">Отправить</button>
            </div>
        </div>
{'fraction_non_alphanumeric': 0.22528089887640448, 'fraction_numerical': 0.0052434456928838954, 'mean_word_length': 3.259170653907496, 'pattern_counts': {'":': 0, '<': 119, '<?xml version=': 0, '>': 145, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4012773', 'n_tokens_mistral': 1828, 'n_tokens_neox': 1766, 'n_words': 318}