|
|
@ -87,12 +87,12 @@
|
|
|
|
</div><span class="param">{{- line -}}
|
|
|
|
</div><span class="param">{{- line -}}
|
|
|
|
{% if role %}
|
|
|
|
{% if role %}
|
|
|
|
<span class="accordion-link">
|
|
|
|
<span class="accordion-link">
|
|
|
|
<a href="/app/sections.py?serv={{serv}}§ion={{ line }}">Edit</a>
|
|
|
|
<a href="/app/sections.py?serv={{serv}}§ion={{ line }}">Edit/Delete</a>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
{%- set backend = line.split(' ') -%}
|
|
|
|
{%- set backend = line.split(' ') -%}
|
|
|
|
<span class="accordion-link">
|
|
|
|
<span class="accordion-link">
|
|
|
|
<a href="/app/viewsttats.py?serv={{-serv-}}#{{- backend[1]-}}" target="_blank">Stats</a>
|
|
|
|
<a href="/app/viewsttats.py?service=haproxy&serv={{-serv-}}#{{- backend[1]-}}" target="_blank">Stats</a>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
{%- set backend = backend|join('_') -%}
|
|
|
|
{%- set backend = backend|join('_') -%}
|
|
|
|
{%- do section_name.update({i: backend}) -%}
|
|
|
|
{%- do section_name.update({i: backend}) -%}
|
|
|
@ -104,7 +104,7 @@
|
|
|
|
</div><span class="param">{{ line }}
|
|
|
|
</div><span class="param">{{ line }}
|
|
|
|
{% if role %}
|
|
|
|
{% if role %}
|
|
|
|
<span class="accordion-link">
|
|
|
|
<span class="accordion-link">
|
|
|
|
<a href="/app/sections.py?serv={{serv}}§ion={{ line }}">Edit</a>
|
|
|
|
<a href="/app/sections.py?serv={{serv}}§ion={{ line }}">Edit/Delete</a>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
{% set backend = line.split(' ') %}
|
|
|
|
{% set backend = line.split(' ') %}
|
|
|
@ -121,7 +121,7 @@
|
|
|
|
</div><span class="param">{{ line }}
|
|
|
|
</div><span class="param">{{ line }}
|
|
|
|
{% if role %}
|
|
|
|
{% if role %}
|
|
|
|
<span class="accordion-link">
|
|
|
|
<span class="accordion-link">
|
|
|
|
<a href="/app/sections.py?serv={{serv}}§ion={{ line }}">Edit</a>
|
|
|
|
<a href="/app/sections.py?serv={{serv}}§ion={{ line }}">Edit/Delete</a>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
{% set backend = line.split(' ') %}
|
|
|
|
{% set backend = line.split(' ') %}
|
|
|
@ -135,7 +135,7 @@
|
|
|
|
</div><span class="param">{{ line }}
|
|
|
|
</div><span class="param">{{ line }}
|
|
|
|
{% if role %}
|
|
|
|
{% if role %}
|
|
|
|
<span class="accordion-link">
|
|
|
|
<span class="accordion-link">
|
|
|
|
<a href="/app/sections.py?serv={{serv}}§ion={{ line }}">Edit</a>
|
|
|
|
<a href="/app/sections.py?serv={{serv}}§ion={{ line }}">Edit/Delete</a>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
</span><div>
|
|
|
|
</span><div>
|
|
|
@ -145,7 +145,7 @@
|
|
|
|
</div><span class="param">{{ line }}
|
|
|
|
</div><span class="param">{{ line }}
|
|
|
|
{% if role %}
|
|
|
|
{% if role %}
|
|
|
|
<span class="accordion-link">
|
|
|
|
<span class="accordion-link">
|
|
|
|
<a href="/app/sections.py?serv={{serv}}§ion={{ line }}">Edit</a>
|
|
|
|
<a href="/app/sections.py?serv={{serv}}§ion={{ line }}">Edit/Delete</a>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
</span><div>
|
|
|
|
</span><div>
|
|
|
@ -155,7 +155,7 @@
|
|
|
|
</div><span class="param">{{ line }}
|
|
|
|
</div><span class="param">{{ line }}
|
|
|
|
{% if role %}
|
|
|
|
{% if role %}
|
|
|
|
<span class="accordion-link">
|
|
|
|
<span class="accordion-link">
|
|
|
|
<a href="/app/sections.py?serv={{serv}}§ion={{ line }}">Edit</a>
|
|
|
|
<a href="/app/sections.py?serv={{serv}}§ion={{ line }}">Edit/Delete</a>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
</span><div>
|
|
|
|
</span><div>
|
|
|
@ -165,7 +165,7 @@
|
|
|
|
</div><span class="param">{{ line }}
|
|
|
|
</div><span class="param">{{ line }}
|
|
|
|
{% if role %}
|
|
|
|
{% if role %}
|
|
|
|
<span class="accordion-link">
|
|
|
|
<span class="accordion-link">
|
|
|
|
<a href="/app/sections.py?serv={{serv}}§ion={{ line }}">Edit</a>
|
|
|
|
<a href="/app/sections.py?serv={{serv}}§ion={{ line }}">Edit/Delete</a>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
</span><div>
|
|
|
|
</span><div>
|
|
|
@ -175,7 +175,7 @@
|
|
|
|
</div><span class="param">{{ line }}
|
|
|
|
</div><span class="param">{{ line }}
|
|
|
|
{% if role %}
|
|
|
|
{% if role %}
|
|
|
|
<span class="accordion-link">
|
|
|
|
<span class="accordion-link">
|
|
|
|
<a href="/app/sections.py?serv={{serv}}§ion={{ line }}">Edit</a>
|
|
|
|
<a href="/app/sections.py?serv={{serv}}§ion={{ line }}">Edit/Delete</a>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
</span><div>
|
|
|
|
</span><div>
|
|
|
@ -208,10 +208,11 @@
|
|
|
|
</span><br />
|
|
|
|
</span><br />
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
{%- if "bind" in line -%}
|
|
|
|
{%- if "bind" in line -%}
|
|
|
|
{%- set bind = line.split(':') -%}
|
|
|
|
{%- set bind = line.split(':')[1] -%}
|
|
|
|
|
|
|
|
{%- set bind = bind.split(' ') -%}
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
{% set k = i - 1 %}
|
|
|
|
{% set k = i - 1 %}
|
|
|
|
$('#{{-section_name[k]|replace("\n", "")-}}').html('<a href="http://{{-serv-}}:{{-bind[1]|replace("\n", "")-}}" title="Open {{serv-}}:{{-bind[1]|replace("\n", "")-}}" target="_blank">Open</a>')
|
|
|
|
$('#{{-section_name[k]|replace("\n", "")-}}').html('<a href="http://{{-serv-}}:{{-bind[0]|replace("\n", "")-}}" title="Open {{serv-}}:{{-bind[0]|replace("\n", "")-}}" target="_blank">Open</a>')
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
{%- endif -%}
|
|
|
|
{%- endif -%}
|
|
|
|
{%- endif -%}
|
|
|
|
{%- endif -%}
|
|
|
|