From e3eff68daf102b33fa9ebdfb6e036bce9e3feb60 Mon Sep 17 00:00:00 2001 From: Max Magorsch Date: Mon, 11 May 2020 04:52:10 +0200 Subject: Migrate to Tyrian v2 Signed-off-by: Max Magorsch --- lib/helpers.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'lib') 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 << "

%s

\n" % category + content << "

%s

\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 << " - @@ -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 '' when 'outage' - return '' + return '' when 'information' return '' end -- cgit v1.2.3-65-gdbad