Skip to content

Commit

Permalink
+ translation
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Sep 16, 2015
1 parent 5f55e57 commit 55912d3
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/views/dashboard/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@
<div class="info-box-content">
<div class="pull-right btn-group">
<? if ($model->count['domains']>1) { ?>
<?= Html::a('view', '@domain/index', ['class' => 'btn btn-xs btn-default']) ?>
<?= Html::a(Yii::t('app', 'view'), '@domain/index', ['class' => 'btn btn-xs btn-default']) ?>
<? } ?>
<?= Html::a('buy', '@domain/buy', ['class' => 'btn btn-xs btn-default']) ?>
<?= Html::a(Yii::t('app', 'buy'), '@domain/buy', ['class' => 'btn btn-xs btn-default']) ?>
</div>
<span class="info-box-text">Domains</span>
<span class="info-box-text"><?= Yii::t('app', 'Domains') ?></span>
<span class="info-box-number">
<span style="font-size:130%"><?= $model->count['domains'] ?></span>
</span>
<? if ($model->count['contacts']>1) { ?>
<span class="info-box-number">
<span style="font-weight:normal">Contacts:</span> <?= $model->count['contacts'] ?>&nbsp;
<?= Html::a('view', '@contact/index', ['class' => 'btn btn-xs btn-default']) ?>
<span style="font-weight:normal"><?= Yii::t('app', 'Contacts') ?>:</span> <?= $model->count['contacts'] ?>&nbsp;
<?= Html::a(Yii::t('app', 'view'), '@contact/index', ['class' => 'btn btn-xs btn-default']) ?>
</span>
<? } ?>
</div><!-- /.info-box-content -->
Expand All @@ -38,11 +38,11 @@
<div class="info-box-content">
<div class="pull-right btn-group">
<? if ($model->count['servers']>1) { ?>
<?= Html::a('view', '@server/index', ['class' => 'btn btn-xs btn-default']) ?>
<?= Html::a(Yii::t('app', 'view'), '@server/index', ['class' => 'btn btn-xs btn-default']) ?>
<? } ?>
<?= Html::a('buy', '@server/buy', ['class' => 'btn btn-xs btn-default']) ?>
<?= Html::a(Yii::t('app', 'buy'), '@server/buy', ['class' => 'btn btn-xs btn-default']) ?>
</div>
<span class="info-box-text">Servers</span>
<span class="info-box-text"><?= Yii::t('app', 'Servers') ?></span>
<span class="info-box-number">
<span style="font-size:130%"><?= $model->count['servers'] ?></span>
</span>
Expand All @@ -54,10 +54,10 @@
<span class="info-box-icon bg-yellow"><i class="fa fa-ticket"></i></span>
<div class="info-box-content">
<div class="pull-right btn-group">
<?= Html::a('view', '@ticket/index', ['class' => 'btn btn-xs btn-default']) ?>
<?= Html::a('create', '@ticket/create', ['class' => 'btn btn-xs btn-default']) ?>
<?= Html::a(Yii::t('app', 'view'), '@ticket/index', ['class' => 'btn btn-xs btn-default']) ?>
<?= Html::a(Yii::t('app', 'create'), '@ticket/create', ['class' => 'btn btn-xs btn-default']) ?>
</div>
<span class="info-box-text">Tickets</span>
<span class="info-box-text"><?= Yii::t('app', 'Tickets') ?></span>
<span class="info-box-number">
<span style="font-size:130%"><?= $model->count['tickets'] ?></span>
</span>
Expand All @@ -69,16 +69,16 @@
<span class="info-box-icon bg-red"><i class="fa fa-money"></i></span>
<div class="info-box-content">
<div class="pull-right btn-group">
<?= Html::a('view', '@bill/index', ['class' => 'btn btn-xs btn-default']) ?>
<?= Html::a('recharge', '@bill/deposit', ['class' => 'btn btn-xs btn-default']) ?>
<?= Html::a(Yii::t('app', 'view'), '@bill/index', ['class' => 'btn btn-xs btn-default']) ?>
<?= Html::a(Yii::t('app', 'recharge'), '@bill/deposit', ['class' => 'btn btn-xs btn-default']) ?>
</div>
<span class="info-box-text"><?= Yii::t('app', 'Balance') ?></span>
<span class="info-box-number">
<span style="font-size:130%"><?= Yii::$app->formatter->asCurrency($model->balance, $model->currency) ?></span>
</span>
<? if ($model->credit > 0) { ?>
<span class="info-box-number">
<span style="font-weight:normal">Credit:</span>
<span style="font-weight:normal"><?= Yii::t('app', 'Credit') ?>:</span>
<?= Yii::$app->formatter->asCurrency($model->credit, $model->currency) ?>
</span>
<? } ?>
Expand Down

0 comments on commit 55912d3

Please sign in to comment.