front_generator: нормальные отступы для всех включаемых файлов, добавление страницы с логами для TDMA-терминала
This commit is contained in:
@@ -1,5 +1,18 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
{% macro include_macro(file) %}
|
||||
// ========== include from '{{ file }}'
|
||||
{% include file %}
|
||||
// ========== include end from '{{ file }}'
|
||||
{% endmacro %}
|
||||
{% macro include_macro_no_comment(file) %}
|
||||
{% include file %}
|
||||
{% endmacro %}
|
||||
{% macro include_macro_ignore_missing(file) %}
|
||||
// ========== include from '{{ file }}'
|
||||
{% include file ignore missing %}
|
||||
// ========== include end from '{{ file }}'
|
||||
{% endmacro %}
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
@@ -53,7 +66,7 @@
|
||||
</div>
|
||||
</header>
|
||||
<div id="content">
|
||||
{% for tab in header_tabs %}{% include 'common/' ~ tab.name ~ '.html.j2' %}{% endfor %}
|
||||
{% for tab in header_tabs %}{{ include_macro_no_comment('common/' ~ tab.name ~ '.html.j2') | indent(8, true) }}{% endfor %}
|
||||
{% raw %}
|
||||
<p>Последнее обновление статистики: {{ lastUpdateTime }}</p>
|
||||
</div>
|
||||
@@ -108,15 +121,9 @@
|
||||
cesPasswordValue: '',
|
||||
{% endif %}
|
||||
|
||||
// ========== include from 'common/all-params-data.js.j2'
|
||||
{% include 'common/all-params-data.js.j2' %}
|
||||
// ========== include end from 'common/all-params-data.js.j2'
|
||||
|
||||
{{ include_macro('common/all-params-data.js.j2') | indent(16, true) }}
|
||||
{% for tab in header_tabs %}
|
||||
// ========== include from '{{ 'common/' ~ tab.name ~ '-data.js.j2' }}'
|
||||
{% include 'common/' ~ tab.name ~ '-data.js.j2' ignore missing %}
|
||||
// ========== include end from '{{ 'common/' ~ tab.name ~ '-data.js.j2' }}'
|
||||
|
||||
{{ include_macro_ignore_missing('common/' ~ tab.name ~ '-data.js.j2') | indent(16, true) }}
|
||||
{% endfor %}
|
||||
uploadFw: {
|
||||
progress: null,
|
||||
@@ -183,15 +190,9 @@
|
||||
return toLocaleStringWithSpaces(result)
|
||||
},
|
||||
|
||||
// ========== include from 'common/all-params-methods.js.j2'
|
||||
{% include 'common/all-params-methods.js.j2' %}
|
||||
// ========== include end from 'common/all-params-methods.js.j2'
|
||||
|
||||
{{ include_macro('common/all-params-methods.js.j2') | indent(12, true) }}
|
||||
{% for tab in header_tabs %}
|
||||
// ========== include from '{{ 'common/' ~ tab.name ~ '-methods.js.j2' }}'
|
||||
{% include 'common/' ~ tab.name ~ '-methods.js.j2' ignore missing %}
|
||||
// ========== include end from '{{ 'common/' ~ tab.name ~ '-methods.js.j2' }}'
|
||||
|
||||
{{ include_macro_ignore_missing('common/' ~ tab.name ~ '-methods.js.j2') | indent(12, true) }}
|
||||
{% endfor %}
|
||||
|
||||
performUpdateSettings() {
|
||||
|
Reference in New Issue
Block a user