From 9f34e1109107a4be522d3d1ccf7fb051d7170fa1 Mon Sep 17 00:00:00 2001 From: Julien Rouhaud Date: Wed, 17 Aug 2016 18:48:28 +0200 Subject: [PATCH] Use numeric id in per unit series div on graph edition. --- ui/templates/graphs/edit.html.ep | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ui/templates/graphs/edit.html.ep b/ui/templates/graphs/edit.html.ep index fe98a84..5cffddb 100644 --- a/ui/templates/graphs/edit.html.ep +++ b/ui/templates/graphs/edit.html.ep @@ -175,19 +175,21 @@ <% if ( scalar (stash 'id_server')) { %> -
+
+ % my $i = 1; % foreach my $service (keys %labels) { % foreach my $unit ( keys %{ $labels{$service} } ) { <%= l('Service') . " " . $labels{$service}{$unit}[0]{service} %> (<%= $unit %>) - -
+
% foreach my $l ( @{ $labels{$service}{$unit} } ) { + % $i++; % }