Skip to content

Commit

Permalink
got rid of Lang::t
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Sep 21, 2015
1 parent 89f228e commit c0f6e87
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/grid/TicketGridView.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace hipanel\modules\ticket\grid;

use common\components\Lang;
use hipanel\grid\ActionColumn;
use hipanel\grid\BoxedGridView;
use hipanel\modules\client\grid\ClientColumn;
Expand Down Expand Up @@ -35,7 +34,7 @@ public static function defaultColumns()
? Html::tag('div', '<span class="fa fa-circle-o text-muted"></span>', ['class' => 'table-list-cell table-list-cell-type'])
: Html::tag('div', '<span class="fa fa-check-circle text-muted"></span>', ['class' => 'table-list-cell table-list-cell-type']);
$t = Html::tag('b', Html::a($data->subject, $data->threadUrl)) . Topic::widget(['topics' => $data->topics]) .
Html::tag('div', sprintf('#%s %s %s', $data->id, Lang::t($data->state_label), Yii::$app->formatter->asDatetime($data->create_time)), ['class' => 'text-muted']);
Html::tag('div', sprintf('#%s %s %s', $data->id, $data->state_label, Yii::$app->formatter->asDatetime($data->create_time)), ['class' => 'text-muted']);

return $ava . $state . Html::tag('div', $t, ['class' => 'table-list-cell table-list-title']);
},
Expand Down

0 comments on commit c0f6e87

Please sign in to comment.