| @@ 50-54 (lines=5) @@ | ||
| 47 | 'class' => 'yii\grid\ActionColumn', |
|
| 48 | 'template'=>'{view}', |
|
| 49 | 'buttons' => [ |
|
| 50 | 'view' => function ($url, $model) use ($git) { |
|
| 51 | return Html::a('<span class="glyphicon glyphicon-eye-open"></span>', |
|
| 52 | ['commitview', 'id' => $git->repository, 'hash' => $model["h"]], |
|
| 53 | ['title' => Yii::t('app', 'View commit ' . substr($model['h'], 0, 7))]); |
|
| 54 | }, |
|
| 55 | ], |
|
| 56 | ], |
|
| 57 | ], |
|
| @@ 52-56 (lines=5) @@ | ||
| 49 | 'class' => 'yii\grid\ActionColumn', |
|
| 50 | 'template'=>'{view}', |
|
| 51 | 'buttons' => [ |
|
| 52 | 'view' => function ($url, $model) use ($git) { |
|
| 53 | return Html::a('<span class="glyphicon glyphicon-eye-open"></span>', |
|
| 54 | ['commitview', 'id' => $git->repository, 'hash' => $model["h"]], |
|
| 55 | ['title' => Yii::t('app', 'View commit ' . substr($model['h'], 0, 7))]); |
|
| 56 | }, |
|
| 57 | ], |
|
| 58 | ], |
|
| 59 | ], |
|