mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 10:41:34 +00:00
Added l7 proto graphs to observation points (#6085)
This commit is contained in:
parent
cf68714a19
commit
15bca61e2c
11 changed files with 30 additions and 60 deletions
|
|
@ -87,8 +87,8 @@
|
|||
{% if(observationPoints ~= nil) then %}
|
||||
|
||||
|
||||
{% for k, v in pairsByKeys(observationPoints, asc) do %}
|
||||
<form id="switch_interface_form_observation_point_{{ k }}" method="POST" action="{{ ntop.getHttpPrefix() .. "/lua/flows_stats.lua" .. action_urls[interface.getId()] }}&observationPointId={{ k }}" >
|
||||
{% for _, v in pairsByKeys(observationPoints, asc) do %}
|
||||
<form id="switch_interface_form_observation_point_{{ v["obs_point"] }}" method="POST" action="{{ ntop.getHttpPrefix() .. "/lua/flows_stats.lua" .. action_urls[interface.getId()] }}&observationPointId={{ v["obs_point"] }}" >
|
||||
<input name="switch_interface" type="hidden" value="1" />
|
||||
<input name="csrf" type="hidden" value="{{ ntop.getRandomCSRFValue() }}" />
|
||||
</form>
|
||||
|
|
@ -100,10 +100,10 @@
|
|||
|
||||
{% -- The Observationpoint optgroup %}
|
||||
<optgroup label="{{ i18n('observationpoints') }}">
|
||||
{% for k, v in pairsByKeys(observationPoints, asc) do %}
|
||||
{% for _, v in pairsByKeys(observationPoints, asc) do %}
|
||||
{% local selected = '' %}
|
||||
{% if((observationPointId ~= nil) and (tostring(k) == tostring(observationPointId))) then selected = 'selected' end %}
|
||||
<option value="{{ k }}" {{ selected }}>{{ getObsPointAlias(k, true) }}</option>
|
||||
<option value="{{ v["obs_point"] }}" {{ selected }}>{{ getObsPointAlias(v["obs_point"], true) }}</option>
|
||||
{% end %}
|
||||
</optgroup>
|
||||
</select>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue