lib/splash/webadmin/portal/views/processes.slim in prometheus-splash-0.8.4 vs lib/splash/webadmin/portal/views/processes.slim in prometheus-splash-0.8.5

- old
+ new

@@ -70,23 +70,26 @@ th Patterns th Status tbody - @data.each do |process| tr id="#{process[:process].to_s}" - td <b>Process</b> : #{process[:process]} + td <i class="uk-icon-cog"></i>&nbsp;<b>Process</b> : #{process[:process]} td - span.uk-text-bold Patterns + - if process[:retention].class == Hash + div <i class="uk-icon-calendar-minus-o"></i>&nbsp;<b>History retention</b> : #{process[:retention].flatten.reverse.join(' ')} + span.uk-text-bold <i class="uk-icon-binoculars"></i>&nbsp; Patterns ul - process[:patterns].each do |pattern| li= pattern + td - if @result[process[:process]][:status] == :inexistant div.uk-badge.uk-badge-danger not running - if @result[process[:process]][:status] == :running div.uk-badge.uk-badge-success running ul - li <b>CPU usage</b> : #{@result[process[:process]][:cpu]} - li <b>MEM usage</b> : #{@result[process[:process]][:mem]} + li <i class="uk-icon-percent"></i>&nbsp;<b>CPU usage</b> : #{@result[process[:process]][:cpu]} + li <i class="uk-icon-percent"></i>&nbsp;<b>MEM usage</b> : #{@result[process[:process]][:mem]} td input.delete-process.uk-button.uk-button-mini.uk-button-danger id="#{process[:process].to_s}" value="Delete" br input.modify-process.uk-button.uk-button-mini.uk-button-primary id="#{process[:process].to_s}" value="Modify" onclick="location.href='/add_modify_process/#{process[:process].to_s}';" br