Merge pull request #62 from apuc/achievements-link-fix
Achievments links fix
This commit is contained in:
commit
9ebfb3323c
@ -100,7 +100,7 @@ $this->params['breadcrumbs'][] = $this->title;
|
|||||||
<h2>Достижения</h2>
|
<h2>Достижения</h2>
|
||||||
<?php foreach ($achievements as $achievement) : ?>
|
<?php foreach ($achievements as $achievement) : ?>
|
||||||
<a target="_blank"
|
<a target="_blank"
|
||||||
href="<? echo \yii\helpers\Url::to(['/achievements/achievements/view', 'id' => $achievement['achievement']->id]);?>"
|
href="<? \yii\helpers\Url::to(['/achievements/achievements/view', 'id' => $achievement['achievement']->id]);?>"
|
||||||
class="btn btn-default btn-sm">
|
class="btn btn-default btn-sm">
|
||||||
<?= Html::tag('img', null,
|
<?= Html::tag('img', null,
|
||||||
['src' => $achievement['achievement']->img, 'height' => '50px', 'width' => '50px']
|
['src' => $achievement['achievement']->img, 'height' => '50px', 'width' => '50px']
|
||||||
|
@ -40,14 +40,12 @@ $this->title = 'Профиль';
|
|||||||
|
|
||||||
<h2>Достижения</h2>
|
<h2>Достижения</h2>
|
||||||
<?php foreach ($achievements as $achievement) : ?>
|
<?php foreach ($achievements as $achievement) : ?>
|
||||||
<a target="_blank"
|
<div class="btn btn-default btn-sm">
|
||||||
href="<? echo \yii\helpers\Url::to(['/achievements/achievements/view', 'id' => $achievement['achievement']->id]);?>"
|
|
||||||
class="btn btn-default btn-sm">
|
|
||||||
<?= Html::tag('img', null,
|
<?= Html::tag('img', null,
|
||||||
['src' => $achievement['achievement']->img, 'height' => '50px','width' => '50px']
|
['src' => $achievement['achievement']->img, 'height' => '50px','width' => '50px']
|
||||||
) ?>
|
) ?>
|
||||||
<?= $achievement['achievement']->title; ?>
|
<?= $achievement['achievement']->title; ?>
|
||||||
</a>
|
</div>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
|
||||||
<h2>Дополнительные сведения</h2>
|
<h2>Дополнительные сведения</h2>
|
||||||
|
Loading…
Reference in New Issue
Block a user