mirror of
https://github.com/Dahlgren/arma-server-web-admin.git
synced 2024-08-30 17:22:10 +00:00
Handle first start without servers.json and better empty servers state
This commit is contained in:
parent
100c38df6f
commit
00b39fccbf
@ -70,7 +70,7 @@ Manager.prototype.load = (function () {
|
||||
|
||||
fs.readFile(filePath, function (err, data) {
|
||||
if (err) {
|
||||
console.log(err);
|
||||
console.log("Could not load any existing servers configuration, starting fresh");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -9,6 +9,7 @@ define(function (require) {
|
||||
tpl = require('text!tpl/servers/empty.html');
|
||||
|
||||
return Marionette.ItemView.extend({
|
||||
tagName: "tr",
|
||||
template: _.template(tpl),
|
||||
|
||||
initialize: function (options) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
<div class="jumbotron">
|
||||
<h1>Jumbotron heading</h1>
|
||||
<td colspan="4">
|
||||
<h1>Welcome!</h1>
|
||||
<p class="lead">Create your first server!</p>
|
||||
<p><a class="btn btn-lg btn-success" id="add-server" href="#" role="button">Create server</a></p>
|
||||
</div>
|
||||
</td>
|
||||
|
Loading…
Reference in New Issue
Block a user