diff --git a/js/client-ladder.js b/js/client-ladder.js
index 003bc8490..51b4c6902 100644
--- a/js/client-ladder.js
+++ b/js/client-ladder.js
@@ -14,7 +14,7 @@
if (!this.curFormat) {
var ladderButtons = '';
if (!window.BattleFormats) {
- this.$el.html('Loading...');
+ this.$el.html('
See a user\'s ranking with /ranking username
' +
+ this.$el.html('
See a user\'s ranking with /ranking username
' +
//'
I\'m really really sorry, but as a warning: we\'re going to reset the ladder again soon to fix some more ladder bugs.
' +
'
(btw if you couldn\'t tell the ladder screens aren\'t done yet; they\'ll look nicer than this once I\'m done.)
');
} else {
var format = this.curFormat;
- this.$el.html('
');
+ this.$el.html('
');
$.get('/ladder.php?format='+encodeURIComponent(format)+'&server='+encodeURIComponent(Config.server.id.split(':')[0])+'&output=html', _.bind(function(data){
if (this.curFormat !== format) return;
- var buf = '
';
+ var buf = '
';
buf += '
'+format+' Top 100
';
- buf += data;
+ buf += data+'
';
this.$el.html(buf);
}, this), 'html');
}
diff --git a/style/client.css b/style/client.css
index 782e394d3..55fc1ddd4 100644
--- a/style/client.css
+++ b/style/client.css
@@ -21,7 +21,7 @@ body {
.pad {
margin: 0;
- padding: 0 15px;
+ padding: 5px 15px;
}
.label {
font-size: 9pt;
@@ -341,6 +341,26 @@ body {
box-shadow: 0 1px 2px rgba(0,0,0,.1);
}
+/*********************************************************
+ * Ladder
+ *********************************************************/
+
+.ladder table, .ladder td, .ladder th {
+ border-collapse: collapse;
+ border: 1px solid #BBBBBB;
+}
+.ladder td, .ladder th {
+ padding: 3px 5px;
+}
+.ladder th {
+ text-align: left;
+ font-size: 9pt;
+ background: #EEEEEE;
+}
+.ladder span {
+ color: gray;
+}
+
/*********************************************************
* Chat
*********************************************************/