Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 5 commits
  • 3 files changed
  • 0 commit comments
  • 2 contributors
View
3  protected/components/RatingWidget.php
@@ -15,6 +15,7 @@ public function run()
'select' => 'login, points'
));
$topUsers = User::model()->findAll($criteria);
- $this->render('RatingWidget', array('users' => $topUsers));
+ $topUsersNum = sizeof($topUsers);
+ $this->render('RatingWidget', array('users' => $topUsers, 'usersNum' => $topUsersNum));
}
}
View
2  protected/components/views/RatingWidget.php
@@ -7,7 +7,7 @@
$icons = array('♛', '♚', '♔', '','');
-for($i = 0; $i < 5; $i++):
+for($i = 0; $i < $usersNum; $i++):
?>
<tr>
View
15 static/styles/style.css
@@ -1,4 +1,3 @@
-
/*
* HTML5 Boilerplate
*
@@ -2094,9 +2093,7 @@ footer {
color: #333;
text-decoration: none;
}
-.btn:focus {
- outline: 1px dotted #666;
-}
+
.btn.primary {
color: #ffffff;
background-color: #0064cd;
@@ -4415,15 +4412,7 @@ ol.luck-read-more li
width:750px;
margin-bottom:-30px;
}
-
-
-
-
-
-
-
-
-
+}
.yiiLog, .yiiLog *
{

No commit comments for this range

Something went wrong with that request. Please try again.