lib/splash/webadmin/portal/views/logs.slim in prometheus-splash-0.8.4 vs lib/splash/webadmin/portal/views/logs.slim in prometheus-splash-0.8.5
- old
+ new
@@ -72,26 +72,28 @@
th Status
th Actions
tbody
- @data.each do |log|
tr id="#{log[:label].to_s}"
- td <b>Label</b> : #{log[:label]}
+ td <i class="uk-icon-tag"></i> <b>Label</b> : #{log[:label]}
td
ul
- li <b>File</b> : #{log[:log]}
- li <b>Pattern</b> : #{log[:pattern]}
+ li <i class="uk-icon-file"></i> <b>File</b> : #{log[:log]}
+ li <i class="uk-icon-binoculars"></i> <b>Pattern</b> : #{log[:pattern]}
+ - if log[:retention].class == Hash
+ li <i class="uk-icon-calendar-minus-o"></i> <b>History retention</b> : #{log[:retention].flatten.reverse.join(' ')}
td
- if @result[log[:label]][:status] == :missing
div.uk-badge.uk-badge-warning missing
- if @result[log[:label]][:status] == :clean
div.uk-badge.uk-badge-success success
ul
- li <b>Lines count</b> : #{@result[log[:label]][:lines]}
+ li <i class="uk-icon-asterisk"></i> <b>Lines count</b> : #{@result[log[:label]][:lines]}
- if @result[log[:label]][:status] == :matched
div.uk-badge.uk-badge-danger matched
ul
- li <b>Lines count</b> : #{@result[log[:label]][:lines]}
- li <b class="uk-text-danger">Matchs count : #{@result[log[:label]][:count]} </b>
+ li <i class="uk-icon-asterisk"></i> <b>Lines count</b> : #{@result[log[:label]][:lines]}
+ li <i class="uk-icon-bolt"></i> <b class="uk-text-danger">Matchs count : #{@result[log[:label]][:count]} </b>
td
input.delete-log.uk-button.uk-button-mini.uk-button-danger id="#{log[:label].to_s}" value="Delete"
br
input.modify-log.uk-button.uk-button-mini.uk-button-primary id="#{log[:label].to_s}" value="Modify" onclick="location.href='/add_modify_log/#{log[:label].to_s}';"
br