<?php

use yii\helpers\Html;
use yii\widgets\ListView;

/* @var $this yii\web\View */

?>
<h1>Links Index</h1>

<?= ListView::widget([
    'dataProvider' => $data,
    'itemView' => '_linkItem',
    'options' => ['class' => 'striped'],
]); ?>

<?php if (!Yii::$app->user->isGuest) : ?>
<?= Html::a('Add New', ['new'], ['class' => 'btn btn-default btn-success']); ?>
<?php endif; ?>

<?php

use yii\helpers\Html;
use yii\widgets\ListView;

/* @var $this yii\web\View */

?>
<h3>Shared Links:</h3>
<?php if (!Yii::$app->user->isGuest) : ?>
    <?= Html::a('Add New', ['new'], ['class' => 'btn btn-default btn-success']); ?>
<?php endif; ?>
<?= ListView::widget([
    'dataProvider' => $data,
    'itemView' => '_linkItem',
    'options' => ['class' => 'striped'],
]); ?>

Move "Add Link" button to top of page
Move "Add Link" button to top of page

It will be annoying at the bottom when there are a lot of links.
This closes #10
