Code Duplication    Length = 3-4 lines in 2 locations

src/views/service/index.php 1 location

@@ 19-22 (lines=4) @@
16
17
        <?php $page->setSearchFormData(compact(['stateData', 'softData'])) ?>
18
        <?php $page->beginContent('main-actions') ?>
19
            <?php if (Yii::$app->user->can('admin')) : ?>
20
                <?= Html::a(Yii::t('hipanel:hosting', 'Create service'), 'create', ['class' => 'btn btn-sm btn-success']) ?>
21
            <?php endif ?>
22
        <?php $page->endContent() ?>
23
24
        <?php $page->beginContent('sorter-actions') ?>
25
            <?= $page->renderSorter([

src/views/ip/index.php 1 location

@@ 22-24 (lines=3) @@
19
        <?php $page->setSearchFormData(compact(['ipTags'])) ?>
20
21
        <?php $page->beginContent('main-actions') ?>
22
            <?php if (Yii::$app->user->can('support')) : ?>
23
                <?= Html::a(Yii::t('hipanel:hosting', 'Create IP'), ['@ip/create'], ['class' => 'btn btn-sm btn-success']) ?>
24
            <?php endif; ?>
25
        <?php $page->endContent() ?>
26
27
        <?php if (Yii::$app->user->can('support')) : ?>