This commit is contained in:
Krivchikov Dmitry 2015-09-28 14:05:03 +03:00
parent d6a4260d50
commit dc7d394e07
3 changed files with 3 additions and 3 deletions

View File

@ -69,7 +69,7 @@ class PageController extends Controller
self::render('pointsTemplate.php', array( self::render('pointsTemplate.php', array(
'categories' => $categories, 'categories' => $categories,
'user' => App::$user, // 'user' => App::$user,
'points' => $result, 'points' => $result,
'notModeratedPoints' => $notModeratedPoints, 'notModeratedPoints' => $notModeratedPoints,
'randomPoint' => Point::model()->getRandom(), 'randomPoint' => Point::model()->getRandom(),

View File

@ -44,7 +44,7 @@ if (App::getParam('user')) {
if ((int) App::getParam('category')) { if ((int) App::getParam('category')) {
$header = 'Список точек в категории "' . $categories[(int) App::getParam('category')]->name . '"'; $header = 'Список точек в категории "' . $categories[(int) App::getParam('category')]->name . '"';
} }
if ($user && $user->id) { if (isset($user) && $user && $user->id) {
$header = 'Список точек пользователя <a href="/user/'.$user->id.'">"' . $user->nick . '"</a>'; $header = 'Список точек пользователя <a href="/user/'.$user->id.'">"' . $user->nick . '"</a>';
} }
?> ?>

View File

@ -9,7 +9,7 @@
.lightBody {background-color: rgba(255,255,255, 0.8);margin-top: 0px;padding-bottom: 30px;} .lightBody {background-color: rgba(255,255,255, 0.8);margin-top: 0px;padding-bottom: 30px;}
.articlesList {} .articlesList {}
.articlesList .article {border: solid 1px #ddd; border-radius: 3px; padding: 4px; margin-bottom: 5px;background-color: rgba(255,255,255, 0.8);} .articlesList .article {border: solid 1px #ddd; border-radius: 3px; padding: 8px; margin-bottom: 5px;background-color: rgba(255,255,255, 0.8);}
.articlesList .article img {width: 100px; float: left; margin-right: 10px;} .articlesList .article img {width: 100px; float: left; margin-right: 10px;}
.articlesList .article .h {font-size: 18px; font-weight: bold; display: block;} .articlesList .article .h {font-size: 18px; font-weight: bold; display: block;}
.articlesList .article .date {font-size: 11px; color: #bbb; } .articlesList .article .date {font-size: 11px; color: #bbb; }