diff options
-rw-r--r-- | interface/index.html | 21 | ||||
-rw-r--r-- | interface/js/rspamd.js | 4 |
2 files changed, 2 insertions, 23 deletions
diff --git a/interface/index.html b/interface/index.html index d73acf7a7..e5f6340c1 100644 --- a/interface/index.html +++ b/interface/index.html @@ -81,27 +81,6 @@ <th class="col5" title="SId">Configuration ID</th> </thead> <tbody> - <tr> - <td class="col1" title="Radio"><input type="radio" id ="bu" class="form-control radio" name="clusterName" value="" checked></td> - <td class="col2" title="SName">ALL SERVERS</td> - <td class="col3" title="SHost"></td> - <td class="col4" title="SStatus"></td> - <td class="col5" title="SId">?????????????</td> - </tr> - <tr> - <td class="col1" title="Radio"><input type="radio" class="form-control radio" name="clusterName" value=""></td> - <td class="col2" title="SName">Server1</td> - <td class="col3" title="SHost">localhost:8080</td> - <td class="col4" title="SStatus"><span class="icon"><i class="glyphicon glyphicon-remove-circle"></i></span></td> - <td class="col5" title="SId">?????????????</td> - </tr> - <tr> - <td class="col1" title="Radio"><input type="radio" class="form-control radio" name="clusterName" value=""></td> - <td class="col2" title="SName">Server2</td> - <td class="col3" title="SHost">localhost:8080</td> - <td class="col4" title="SStatus"><span class="icon"><i class="glyphicon glyphicon-ok-circle"></i></span></td> - <td class="col5" title="SId">?????????????</td> - </tr> </tbody> </table> </div> diff --git a/interface/js/rspamd.js b/interface/js/rspamd.js index eec754cb4..be757ce4d 100644 --- a/interface/js/rspamd.js +++ b/interface/js/rspamd.js @@ -380,14 +380,14 @@ '<td class="col2" title="SNAme">' + key + '</td>' + '<td class="col3" title="SHost">' + val.host + '</td>' + '<td class="col4" title="SStatus"><span class="icon"><i class="' + glyph_status + '"></i></span></td>' + - '<td class="col5" title="SId">' + val.data.config_id + '</td></tr>'); + '<td class="col5" title="SId">' + val.data.config_id.substring(0, 8) + '</td></tr>'); } else { $('#clusterTable tbody').append('<tr>' + '<td class="col1" title="Radio"><input type="radio" class="form-control radio" name="clusterName" value="' + key + '"></td>' + '<td class="col2" title="SNAme">' + key + '</td>' + '<td class="col3" title="SHost">' + val.host + '</td>' + '<td class="col4" title="SStatus"><span class="icon"><i class="' + glyph_status + '"></i></span></td>' + - '<td class="col5" title="SId">' + val.data.config_id + '</td></tr>'); + '<td class="col5" title="SId">' + val.data.config_id.substring(0, 8) + '</td></tr>'); } }); |