mirror of
https://github.com/Dahlgren/arma-server-web-admin.git
synced 2024-08-30 17:22:10 +00:00
Merge pull request #50 from Dahlgren/bugfix/no-servers-state
Handle first start without servers.json and better empty servers state
This commit is contained in:
commit
8c3cf2abbe
@ -70,7 +70,7 @@ Manager.prototype.load = (function () {
|
|||||||
|
|
||||||
fs.readFile(filePath, function (err, data) {
|
fs.readFile(filePath, function (err, data) {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.log(err);
|
console.log("Could not load any existing servers configuration, starting fresh");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9,6 +9,7 @@ define(function (require) {
|
|||||||
tpl = require('text!tpl/servers/empty.html');
|
tpl = require('text!tpl/servers/empty.html');
|
||||||
|
|
||||||
return Marionette.ItemView.extend({
|
return Marionette.ItemView.extend({
|
||||||
|
tagName: "tr",
|
||||||
template: _.template(tpl),
|
template: _.template(tpl),
|
||||||
|
|
||||||
initialize: function (options) {
|
initialize: function (options) {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<div class="jumbotron">
|
<td colspan="4">
|
||||||
<h1>Jumbotron heading</h1>
|
<h1>Welcome!</h1>
|
||||||
<p class="lead">Create your first server!</p>
|
<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>
|
<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