<?php
/* @var $this AlbumController */
/* @var $data Album */
?>
<div class="view col-xs-6">
    <?php $path = Yii::app()->params['uploadUrl'] . get_class($data) . '/'; ?>
    <div class="thumbnail-container">
        <?php $image = CHtml::image($path . $data->image, $data->title, array('class' => 'thumbnail')); ?>
        <?php echo CHtml::link($image, array('/album/view', 'slug' => $data->slug)); ?>
    </div>
    <h3>
        <?php echo CHtml::link(CHtml::encode($data->title), array('/album/view', 'slug' => $data->slug)); ?>
    </h3>
</div>