Skip to content

Commit

Permalink
Profile headings (#881)
Browse files Browse the repository at this point in the history
* add player badge image
* Add tab headings
  • Loading branch information
proditis authored Feb 24, 2023
1 parent 544bb85 commit c9d3234
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use yii\grid\GridView;
?>
<?php Pjax::begin(['id' => 'activated-writeupsPJ', 'enablePushState' => false, 'enableReplaceState' => false,]); ?>
<h5>Activated Writeups</h5>
<?= GridView::widget([
'id' => 'activated-writeups',
'dataProvider' => $dataProvider,
Expand Down
2 changes: 2 additions & 0 deletions backend/modules/frontend/views/profile/_activity_tab.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<h5>Activity Stream</h5>

<p>
<?php
$i=1;
Expand Down
1 change: 1 addition & 0 deletions backend/modules/frontend/views/profile/_heading.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<a href="//<?=Yii::$app->sys->offense_domain?>/profile/<?=$model->id?>" target="_blank">
<img width="140px" class="img-fluid img-thumbnail" src="//<?=Yii::$app->sys->offense_domain?>/images/avatars/<?=$model->avatar?>" alt="<?=Yii::$app->sys->offense_domain?>/images/avatars/<?=$model->avatar?>">
</a>
<img align="right" class="img-fluid" src="//<?=Yii::$app->sys->offense_domain?>/profile/<?=$model->id?>/badge" alt="Profile badge">
</div>
<div class="media-body va-m">
<h2 class="media-heading"><?=Html::encode($model->owner->username)?>
Expand Down
1 change: 1 addition & 0 deletions backend/modules/frontend/views/profile/_notifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use yii\grid\GridView;
?>
<?php Pjax::begin(['id' => 'notificationsPJ', 'enablePushState' => false, 'enableReplaceState' => false,]); ?>
<h5>Notifications</h5>
<?= GridView::widget([
'id' => 'notifications',
'dataProvider' => $dataProvider,
Expand Down
1 change: 1 addition & 0 deletions backend/modules/frontend/views/profile/_score_monthly.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use yii\grid\GridView;
?>
<?php Pjax::begin(['id' => 'score-monthlyPJ','enablePushState'=>false,'enableReplaceState'=>false,]); ?>
<h5>Monthly Scores</h5>
<?= GridView::widget([
'id'=>'score-monthly',
'dataProvider' => $dataProvider,
Expand Down
1 change: 1 addition & 0 deletions backend/modules/frontend/views/profile/_solves.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use yii\grid\GridView;
?>
<?php Pjax::begin(['id' => 'solvesPJ','enablePushState'=>false,'enableReplaceState'=>false,]); ?>
<h5>Challenge Solves</h5>
<?= GridView::widget([
'id' => 'solves',
'dataProvider' => $dataProvider,
Expand Down
5 changes: 3 additions & 2 deletions backend/modules/frontend/views/profile/_spin_history.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?php
use yii\widgets\Pjax;
use yii\grid\GridView;
Pjax::begin(['id' => 'spin-historyPJ', 'enablePushState' => false, 'enableReplaceState' => false,]);
echo GridView::widget([
Pjax::begin(['id' => 'spin-historyPJ', 'enablePushState' => false, 'enableReplaceState' => false,]);?>
<h5>Spin History</h5>
<?php echo GridView::widget([
'id'=>'spin-history',
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use yii\grid\GridView;
?>
<?php Pjax::begin(['id' => 'target-progressPJ', 'enablePushState' => false, 'enableReplaceState' => false,]); ?>
<h5>Target Progress</h5>
<?= GridView::widget([
'id'=>'target-progress',
'dataProvider' => $dataProvider,
Expand Down
1 change: 1 addition & 0 deletions backend/modules/frontend/views/profile/_vpn_history.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use yii\grid\GridView;
?>
<?php Pjax::begin(['id' => 'vpn-historyPJ','enablePushState'=>false,'enableReplaceState'=>false,]);?>
<h5>VPN History</h5>
<?= GridView::widget([
'id'=>'vpn-history',
'dataProvider' => $dataProvider,
Expand Down
1 change: 1 addition & 0 deletions backend/modules/frontend/views/profile/_writeup_rating.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use yii\widgets\Pjax;
?>
<?php Pjax::begin(['id' => 'writeup-ratingPJ','enablePushState'=>false,'enableReplaceState'=>false,]);?>
<h5>Writeup Ratings</h5>
<?= GridView::widget([
'id'=>'writeup-rating',
'dataProvider' => $dataProvider,
Expand Down
1 change: 1 addition & 0 deletions backend/modules/frontend/views/profile/_writeups.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use yii\grid\GridView;
?>
<?php Pjax::begin(['id' => 'writeupsPJ','enablePushState'=>false,'enableReplaceState'=>false,]);?>
<h5>Writeups</h5>
<?= GridView::widget([
'id'=>'writeups',
'dataProvider' => $dataProvider,
Expand Down

0 comments on commit c9d3234

Please sign in to comment.