Skip to content

Commit

Permalink
Make "Bot Configuration" option more compact
Browse files Browse the repository at this point in the history
  • Loading branch information
AgustinSRG committed Sep 15, 2016
1 parent c80746d commit b9d4161
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/server/handlers/bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ App.server.setHandler('bot', (context, parts) => {
'if (elem) {elem.innerHTML = \'<form style="display:inline;" method="post" action="">&nbsp;Are you sure?&nbsp;' +
'<input type="submit" name="stop" value="Stop Bot" /></form>\';}}</script>';

html += '<table border="0"><tr><td>';
html += '<table border="1">';
html += '<tr><td colspan="2"><div align="center"><strong>Bot Status </strong></div></td></tr>';
html += '<tr><td width="150"><strong>Connection</strong></td><td width="150">';
Expand Down Expand Up @@ -116,11 +117,13 @@ App.server.setHandler('bot', (context, parts) => {
html += battles.join(', ');
html += '</td></tr>';
html += '</table>';
html += '</td><td>';
html += '<p><a href=""><button>Refresh</button></a></p>';
html += '<p><button onclick="showRestartConfirm();">Restart Bot</button><span id="confirm-restart">&nbsp;</span></p>';
if (App.status !== 'stopped') {
html += '<p><button onclick="showStopConfirm();">Stop Bot</button><span id="confirm-stop">&nbsp;</span></p>';
}
html += '</td></tr></table>';
html += '<hr />';

html += '<h3>Bot Configuration</h3>';
Expand Down

0 comments on commit b9d4161

Please sign in to comment.