Merge pull request #62 from apuc/achievements-link-fix

Achievments links fix
This commit is contained in:
kavalar 2021-09-14 13:54:31 +03:00 committed by GitHub
commit 9ebfb3323c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 5 deletions

View File

@ -100,7 +100,7 @@ $this->params['breadcrumbs'][] = $this->title;
<h2>Достижения</h2>
<?php foreach ($achievements as $achievement) : ?>
<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">
<?= Html::tag('img', null,
['src' => $achievement['achievement']->img, 'height' => '50px', 'width' => '50px']

View File

@ -40,14 +40,12 @@ $this->title = 'Профиль';
<h2>Достижения</h2>
<?php foreach ($achievements as $achievement) : ?>
<a target="_blank"
href="<? echo \yii\helpers\Url::to(['/achievements/achievements/view', 'id' => $achievement['achievement']->id]);?>"
class="btn btn-default btn-sm">
<div class="btn btn-default btn-sm">
<?= Html::tag('img', null,
['src' => $achievement['achievement']->img, 'height' => '50px','width' => '50px']
) ?>
<?= $achievement['achievement']->title; ?>
</a>
</div>
<?php endforeach; ?>
<h2>Дополнительные сведения</h2>