diff --git a/factoriocp.py b/factoriocp.py index d23950a..d46c66a 100644 --- a/factoriocp.py +++ b/factoriocp.py @@ -43,8 +43,9 @@ def get_servers(): pass return [{ "name": "Creative fun", "desc": "A creative vanilla server for tests.", "version": "0.14.20", "status": "online", "port": "34197" }, { "name": "Vanilla on the rocks", "desc": "Vanilla map with some mods.", "version": "0.14.19", "status": "offline", "port": "34198" }, - { "name": "Mad enemies", "desc": "Hazardous map. A lot of enemies.", "version": "0.14.19", "status": "online", "port": "34199" }, - { "name": "Mad enemies2", "desc": "Just a copy of Mad enemies.", "version": "0.14.20", "status": "offline", "port": "34200" }] + { "name": "Mad enemies", "desc": "Hazardous map. A lot of enemies.", "version": "0.14.19", "status": "offline", "port": "34199" }, + { "name": "Online Map", "desc": "A modded map for friends.", "version": "0.14.19", "status": "online", "port": "34200" }, + { "name": "Mad enemies2", "desc": "Just a copy of Mad enemies.", "version": "0.14.20", "status": "offline", "port": "34201" }] # routing diff --git a/static/css/sticky-footer.css b/static/css/sticky-footer.css index 46578d1..61f1fad 100644 --- a/static/css/sticky-footer.css +++ b/static/css/sticky-footer.css @@ -8,6 +8,12 @@ body { /* Margin bottom by footer height */ margin-bottom: 60px; } + +a.nounderline { + text-decoration: none; + color: dimgrey; +} + .footer { position: absolute; bottom: 0; diff --git a/views/default.tpl b/views/default.tpl index 56305e1..82127d1 100644 --- a/views/default.tpl +++ b/views/default.tpl @@ -3,7 +3,7 @@
-

Servers

+

Server overview

@@ -12,9 +12,8 @@ @@ -23,7 +22,7 @@

Control your Factorio game servers from here.

- + + +
+ + + +
Addressfactorio.bla.com:{{ server['port'] }}
Version{{ server['version'] }}
Admins0bsidian0rder
+
+
+
+
+ Start + Stop + Edit +
+
+
+
+
+ %end + + + %include('footer.tpl', username=username) diff --git a/views/footer.tpl b/views/footer.tpl index b9f15f9..4689694 100644 --- a/views/footer.tpl +++ b/views/footer.tpl @@ -1,7 +1,7 @@ diff --git a/views/login.tpl b/views/login.tpl index 3cea904..d8c4394 100644 --- a/views/login.tpl +++ b/views/login.tpl @@ -19,7 +19,17 @@ - + +
+

+ %if message: +

+ %end +

+
diff --git a/views/server.tpl b/views/server.tpl index 0874a98..a86fce6 100644 --- a/views/server.tpl +++ b/views/server.tpl @@ -2,87 +2,104 @@
-
- %if server['status'] == "online": -

{{ server['name'] }}Online

- %else: -

{{ server['name'] }}Offline

- %end +
+

Edit Server

- -

{{ server['desc'] }}

+

Control your Factorio game server from here.

- - - - - - - %if server['status'] == "online": - - - - - - %else: - - - - - - %end -
AddressVersionActions
{{ fqdn }}:{{ server['port'] }}{{ server['version'] }} - Stop -
{{ fqdn }}:{{ server['port'] }}{{ server['version'] }} - Start - Delete -
+
+
+ -

-

Settings

-
- blabla -

+
+
+

{{ server['desc'] }}

+ + + + +
Address{{ fqdn }}:{{ server['port'] }}
Version{{ server['version'] }}
Status{{ server['status'] }}
+
+
+
+
+ Start Stop +
+
+
+
+
+
+ +
+
+ Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS. -

-

Backups

-
- blabla -

+
+
+
+
+ +
+
+ Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS. -

-

Mods

-
- blabla -

- -

-

Screenshots

-
- blabla -

- -

-

Console

-
- blabla -

+
+
+
+
+ +
+
+ Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS. +
+
+
+
%include('footer.tpl', username=username)