diff options
author | Max Magorsch <arzano@gentoo.org> | 2020-05-11 04:52:10 +0200 |
---|---|---|
committer | Max Magorsch <arzano@gentoo.org> | 2020-05-11 04:52:10 +0200 |
commit | e3eff68daf102b33fa9ebdfb6e036bce9e3feb60 (patch) | |
tree | 5f9d7880b9ed68ff84e370ca13c08b7c4efa2e39 /lib | |
parent | Use the latest version of tyrian v1 (diff) | |
download | infra-status-e3eff68daf102b33fa9ebdfb6e036bce9e3feb60.tar.gz infra-status-e3eff68daf102b33fa9ebdfb6e036bce9e3feb60.tar.bz2 infra-status-e3eff68daf102b33fa9ebdfb6e036bce9e3feb60.zip |
Migrate to Tyrian v220200511T025318Z
Signed-off-by: Max Magorsch <arzano@gentoo.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/helpers.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/helpers.rb b/lib/helpers.rb index 55fffea..4430886 100644 --- a/lib/helpers.rb +++ b/lib/helpers.rb @@ -22,7 +22,7 @@ helpers do content = '' ServiceRegistry.instance.columns[id].each do |category| - content << "<h3>%s</h3>\n" % category + content << "<h3 class='mt-3'>%s</h3>\n" % category content << services_info(ServiceRegistry.instance.categories[category][:services]) end @@ -41,7 +41,7 @@ helpers do service_name = service_array.nil? ? 'UNKNOWN NAME' : service_array[:name] data_service_name = service_name.gsub('"', "'") content << " - <a class=\"list-group-item has-tooltip notice-link status-#{_service_status}\" href=\"#notices\" title=\"#{_status_text}\" + <a class=\"list-group-item list-group-item-action has-tooltip notice-link status-#{_service_status}\" href=\"#notices\" title=\"#{_status_text}\" data-toggle=\"tooltip\" data-placement=\"top\" data-container=\"body\" data-service=\"#{service}\" data-service-name=\"#{data_service_name}\"> @@ -83,13 +83,13 @@ helpers do def panel_class(notice) if notice['type'] == 'outage' - 'panel-danger' + 'border-danger' elsif notice['type'] == 'information' - 'panel-info' + 'border-info' elsif notice['type'] == 'maintenance' - 'panel-warning' + 'border-warning' else - 'panel-default' + '' end end @@ -128,7 +128,7 @@ helpers do when 'maintenance' return '<i class="fa fa-wrench"></i>' when 'outage' - return '<i class="glyphicon glyphicon-fire"></i>' + return '<i class="fa fa-fire" aria-hidden="true"></i>' when 'information' return '<i class="fa fa-info-circle"></i>' end |