diff --git a/js/client.js b/js/client.js index 3ec106230..59874e0a4 100644 --- a/js/client.js +++ b/js/client.js @@ -2413,9 +2413,10 @@ }; var group = (groupDetails[name.substr(0, 1)] || ''); if (group || name.charAt(0) === ' ') name = name.substr(1); + var ownUserid = app.user.get('userid'); var buf = '
'; - if (avatar) buf += ''; + if (avatar) buf += ''; buf += '' + Tools.escapeHTML(name) + '
'; buf += '' + (group || ' ') + ''; if (data.rooms) { @@ -2429,11 +2430,12 @@ var p2 = data.rooms[i].p2.substr(1); if (!battlebuf) battlebuf = '
Battles: '; else battlebuf += ', '; - battlebuf += '' + roomid.substr(7) + ''; + var ownBattle = (ownUserid === toUserid(p1) || ownUserid === toUserid(p2)); + battlebuf += '' + roomid.substr(7) + ''; } else { if (!chatbuf) chatbuf = '
Chatrooms: '; else chatbuf += ', '; - chatbuf += '' + roomid + ''; + chatbuf += '' + roomid + ''; } } buf += '' + battlebuf + chatbuf + ''; diff --git a/style/client.css b/style/client.css index e51e4605a..46a681172 100644 --- a/style/client.css +++ b/style/client.css @@ -1103,6 +1103,9 @@ a.ilink:hover { text-decoration: underline; color: #6688CC; } +a.ilink.yours { + color: #55388B; +} .chatbox { margin: 0 10px 0 80px;