diff --git a/src/octoprint/templates/index.jinja2 b/src/octoprint/templates/index.jinja2 index fa62ff7a..c3754f4b 100644 --- a/src/octoprint/templates/index.jinja2 +++ b/src/octoprint/templates/index.jinja2 @@ -73,215 +73,15 @@
-
- -
-
- - - - - - - - - -
-
-
-
- -
-
- {{ _('Machine State') }}:
- {{ _('File') }}:  (SD)
- {{ _('Timelapse') }}:
- -
- - {{ _('Approx. Total Print Time') }}:
- {{ _('Print Time') }}:
- {{ _('Print Time Left') }}:
- {{ _('Printed') }}:
- -
-
-
- - -
-
-
-
- -
-
- -
-
- - - - - - -
-
- {{ _('Free') }}: -
-
-
- {% if enableSdSupport %} - - - {{ _('Upload') }} - - - - - {{ _('Upload to SD') }} - - - {% else %} - - - {{ _('Upload') }} - - - {% endif %} -
-
-
-
-
- {{ _('Hint: You can also drag and drop files on this page to upload them.') }} -
-
-
-
-
+ {% include 'sidebar/connection.jinja2' %} + {% include 'sidebar/state.jinja2' %} + {% include 'sidebar/files.jinja2' %}
@@ -294,362 +94,11 @@
-
- {% if enableTemperatureGraph %} -
-
-
- {% endif %} -
- - - - - - - - - - - - -
{{ _('Actual') }}{{ _('Target') }}{{ _('Offset') }}
- - -
-
-
- {% if webcamStream %} -
- -
-
{{ _("Keyboard controls active") }}
-
-
- / : {{ _("X Axis") }} +/-
- / : {{ _("Y Axis") }} +/-
- W, {{ _("Page↑") }} / S, {{ _("Page↓") }}: {{ _("Z Axis") }} +/- -
-
- Home: {{ _("Home X/Y") }}
- End: {{ _("Home Z") }}
- 1, 2, 3, 4: {{ _("Stepsize") }} 0.1, 1, 10, 100mm -
-
-
-
-
- {{ _("Hint: If you move your mouse over the picture, you enter keyboard control mode.") }} -
- {% endif %} - - - - - - - - -
- - - - - - - - - -
- {% if enableGCodeVisualizer %} -
-
- - - - -
-
-
- -
-
-

Model info

-

- -

Layer info

-

-
-
-

Renderer options

- -

- -

-

- - -

- -

- - -

- -

- - -

- -

- -

-
-
-
-
-

Warning

- -

- You've selected for printing which has a size of - . Depending on your machine this - might be too large for rendering and cause your browser to become unresponsive or crash. -

- -

- Are you sure you want to visualize this file nevertheless? -

- - -
-
- {% endif %} -
-

-                            
-                            
- -
- - -
- {% if enableTimelapse %} -
-
-

{{ _('Timelapse Configuration') }}

- - - - - -
- - {{ _('sec') }} -
- -
- -
- - {{ _('sec') }} -
-
- -
- -
- -
- -
-
- -

{{ _('Finished Timelapses') }}

- - - - - - - - - - - - - - - - - -
{{ _('Name') }}{{ _('Size') }}{{ _('Action') }}
 | 
- -
- {% endif %} + {% include 'tabs/temperature.jinja2' %} + {% include 'tabs/control.jinja2' %} + {% include 'tabs/gcodeviewer.jinja2' %} + {% include 'tabs/terminal.jinja2' %} + {% include 'tabs/timelapse.jinja2' %}
diff --git a/src/octoprint/templates/navbar.jinja2 b/src/octoprint/templates/navbar.jinja2 new file mode 100644 index 00000000..517ae5f5 --- /dev/null +++ b/src/octoprint/templates/navbar.jinja2 @@ -0,0 +1,45 @@ +
+ OctoPrint + +
diff --git a/src/octoprint/templates/sidebar/connection.jinja2 b/src/octoprint/templates/sidebar/connection.jinja2 new file mode 100644 index 00000000..59570251 --- /dev/null +++ b/src/octoprint/templates/sidebar/connection.jinja2 @@ -0,0 +1,22 @@ +
+ +
+
+ + + + + + + + + +
+
+
diff --git a/src/octoprint/templates/sidebar/files.jinja2 b/src/octoprint/templates/sidebar/files.jinja2 new file mode 100644 index 00000000..8ca633a5 --- /dev/null +++ b/src/octoprint/templates/sidebar/files.jinja2 @@ -0,0 +1,108 @@ +
+ +
+
+ +
+
+ + + + + + +
+
+ {{ _('Free') }}: +
+
+
+ {% if enableSdSupport %} + + + {{ _('Upload') }} + + + + + {{ _('Upload to SD') }} + + + {% else %} + + + {{ _('Upload') }} + + + {% endif %} +
+
+
+
+
+ {{ _('Hint: You can also drag and drop files on this page to upload them.') }} +
+
+
+
+
diff --git a/src/octoprint/templates/sidebar/state.jinja2 b/src/octoprint/templates/sidebar/state.jinja2 new file mode 100644 index 00000000..393aa92b --- /dev/null +++ b/src/octoprint/templates/sidebar/state.jinja2 @@ -0,0 +1,29 @@ +
+ +
+
+ {{ _('Machine State') }}:
+ {{ _('File') }}:  (SD)
+ {{ _('Timelapse') }}:
+ +
+ + {{ _('Approx. Total Print Time') }}:
+ {{ _('Print Time') }}:
+ {{ _('Print Time Left') }}:
+ {{ _('Printed') }}:
+ +
+
+
+ + +
+
+
diff --git a/src/octoprint/templates/tabs/control.jinja2 b/src/octoprint/templates/tabs/control.jinja2 new file mode 100644 index 00000000..a047cd72 --- /dev/null +++ b/src/octoprint/templates/tabs/control.jinja2 @@ -0,0 +1,133 @@ +
+ {% if webcamStream %} +
+ +
+
{{ _("Keyboard controls active") }}
+
+
+ / : {{ _("X Axis") }} +/-
+ / : {{ _("Y Axis") }} +/-
+ W, {{ _("Page↑") }} / S, {{ _("Page↓") }}: {{ _("Z Axis") }} +/- +
+
+ Home: {{ _("Home X/Y") }}
+ End: {{ _("Home Z") }}
+ 1, 2, 3, 4: {{ _("Stepsize") }} 0.1, 1, 10, 100mm +
+
+
+
+
+ {{ _("Hint: If you move your mouse over the picture, you enter keyboard control mode.") }} +
+ {% endif %} + + + + + + + + +
+ + + + + + + + + +
diff --git a/src/octoprint/templates/tabs/gcodeviewer.jinja2 b/src/octoprint/templates/tabs/gcodeviewer.jinja2 new file mode 100644 index 00000000..8013aa00 --- /dev/null +++ b/src/octoprint/templates/tabs/gcodeviewer.jinja2 @@ -0,0 +1,79 @@ +{% if enableGCodeVisualizer %} +
+
+ + + + +
+
+
+ +
+
+

Model info

+

+ +

Layer info

+

+
+
+

Renderer options

+ +

+ +

+

+ + +

+ +

+ + +

+ +

+ + +

+ +

+ +

+
+
+
+
+

Warning

+ +

+ You've selected for printing which has a size of + . Depending on your machine this + might be too large for rendering and cause your browser to become unresponsive or crash. +

+ +

+ Are you sure you want to visualize this file nevertheless? +

+ + +
+
+{% endif %} diff --git a/src/octoprint/templates/tabs/temperature.jinja2 b/src/octoprint/templates/tabs/temperature.jinja2 new file mode 100644 index 00000000..4f59b227 --- /dev/null +++ b/src/octoprint/templates/tabs/temperature.jinja2 @@ -0,0 +1,57 @@ +
+ {% if enableTemperatureGraph %} +
+
+
+ {% endif %} +
+ + + + + + + + + + + + +
{{ _('Actual') }}{{ _('Target') }}{{ _('Offset') }}
+ + +
+
diff --git a/src/octoprint/templates/tabs/terminal.jinja2 b/src/octoprint/templates/tabs/terminal.jinja2 new file mode 100644 index 00000000..8fe96043 --- /dev/null +++ b/src/octoprint/templates/tabs/terminal.jinja2 @@ -0,0 +1,16 @@ +
+

+    
+    
+ +
+ + +
diff --git a/src/octoprint/templates/tabs/timelapse.jinja2 b/src/octoprint/templates/tabs/timelapse.jinja2 new file mode 100644 index 00000000..dd6fb4d8 --- /dev/null +++ b/src/octoprint/templates/tabs/timelapse.jinja2 @@ -0,0 +1,71 @@ +{% if enableTimelapse %} +
+
+

{{ _('Timelapse Configuration') }}

+ + + + + +
+ + {{ _('sec') }} +
+ +
+ +
+ + {{ _('sec') }} +
+
+ +
+ +
+ +
+ +
+
+ +

{{ _('Finished Timelapses') }}

+ + + + + + + + + + + + + + + + + +
{{ _('Name') }}{{ _('Size') }}{{ _('Action') }}
 | 
+ +
+{% endif %}