Show source-page for admins only
This commit is contained in:
parent
d2224e4e47
commit
fce093711f
|
|
@ -73,12 +73,14 @@
|
|||
<?php if (App::$user && App::$user->id): ?>
|
||||
[ <button type="button" class="btn btn-link" style="color: #333;" onclick="addRemoveFavorite(<?= $point->id ?>)"><span id="myFavoritesButton" class="glyphicon glyphicon-star<?= $point->inFavorites ? '' : '-empty' ?>"></span> Хочу посетить</button> ]
|
||||
[ <button type="button" class="btn btn-link" style="color: #333;" onclick="addRemoveLike(<?= $point->id ?>)"><span id="myLikesButton" class="glyphicon glyphicon-<?= $point->iLike ? 'ok' : 'thumbs-up' ?>"></span> Нравится</button> ]
|
||||
[ <span class="glyphicon glyphicon-new-window"></span> <a href="<?= $point->source ?>" target="_blank">источник</a> ]
|
||||
<?php else: ?>
|
||||
[ <span class="glyphicon glyphicon-star"></span> <?= $countInFavs ?> - в закладках ]
|
||||
[ <span class="glyphicon glyphicon-thumbs-up"></span> <?= $countLikes ?> - нравится ]
|
||||
<?php endif; ?>
|
||||
[ <span class="glyphicon glyphicon-user"></span> <?= $point->authorUser->nick ?> - <span class="glyphicon glyphicon-pencil" title="<?= date('d-m-Y H:i',$point->date) ?>"></span> <?= $point->authorUser->getPointsCount() ?> ]
|
||||
<?php if (App::$user && App::$user->isAdmin == 1): ?>
|
||||
[ <span class="glyphicon glyphicon-new-window"></span> <a href="<?= $point->source ?>" target="_blank">источник: <?= $point->source ?></a> ]
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- [ <span class="glyphicon glyphicon-star"></span>
|
||||
<span class="glyphicon glyphicon-star"></span>
|
||||
|
|
|
|||
Loading…
Reference in New Issue