Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
26 | public function run() |
||
27 | { |
||
28 | if (Proxy::find()->active()->exists()) { |
||
29 | return null; |
||
30 | } |
||
31 | |||
32 | $message = Html::a('Add at least one proxy <span class="fa fa-angle-double-right"></span>', ['proxy/create']); |
||
33 | |||
34 | echo "<section class=\"content-header\">"; |
||
35 | echo BootstrapAlert::widget([ |
||
36 | 'body' => $this->alertTypes['warning']['icon'] . $message, |
||
37 | 'closeButton' => false, |
||
38 | 'options' => $this->options, |
||
39 | ]); |
||
40 | echo "</section>"; |
||
41 | } |
||
42 | } |