Example #1
0
 public function getCreator()
 {
     return File::getCreatorById($this->baseFile->created_by);
 }
            ?>
                                <?php 
            echo Yii::$app->formatter->asShortSize($item['file']->size, 1);
            ?>
                                <?php 
        }
        ?>
                            </td>
                            <td class="text-right" data-sort-value=""
                                title=""><a
                                href="<?php 
        echo File::getCreatorById($item['file']->created_by)->createUrl();
        ?>
">
                                    <?php 
        echo File::getCreatorById($item['file']->created_by)->username;
        ?>
                                </a></td>

                            </td>
                            <td class="text-right" data-sort-value=""
                                title="">
                                <?php 
        echo \humhub\widgets\TimeAgo::widget(['timestamp' => $item['file']->updated_at]);
        ?>
                            </td>
                        </tr>
                        <?php 
    }
} else {
    ?>