<?php
$this->pageTitle = 'Журнал легиона';
?>   
<div class="col-md-4 col-sm-4 col-xs-12 text-center"><?php echo CHtml::link('Общий', array('/guild/journal/', 'id' => $model->id_guild), array('class' => 'block small-block') )?></div>
<div class="col-md-4 col-sm-4 col-xs-12 text-center"><?php echo CHtml::link('Участники', array('/guild/journal/', 'id' => $model->id_guild, 'type'=>1), array('class' => 'block small-block', 'type'=>1) )?></div>
<div class="col-md-4 col-sm-4 col-xs-12 text-center"><?php echo CHtml::link('Хранилище', array('/guild/journal/', 'id' => $model->id_guild, 'type'=>2), array('class' => 'block small-block') )?></div><div class="clearfix"></div>
<?php $this->widget('zii.widgets.CListView', array(
    'id'=>'messages',
    'dataProvider'=>$history->search(),
    'itemView'=>'_history',
    'emptyTagName'=>'div',
    'emptyText'=>'Сообщений нет',
    'template'=>'{items}{pager}',
    'sortableAttributes'=>array('time'),
    'pager'=>array(
        'class'=>'CLinkPager',
        'actionPrefix'=>'page',
        'header' => '<center>',
        'footer' => '</center>',
        'firstPageCssClass' => 'hidden',
        'prevPageLabel' => '«',
        'nextPageLabel' => '»',
        'lastPageCssClass' => 'hidden',
        'maxButtonCount' => 4,
        'htmlOptions' => array("class" => 'pagination'),
    ),
)); ?>