Mentions légales du service

Skip to content
Snippets Groups Projects
Commit d9e75393 authored by JACQUOT Pierre's avatar JACQUOT Pierre
Browse files

[lib] Generate automatically sized header for status page.

parent 727ce4b5
No related branches found
No related tags found
1 merge request!474[lib] Generate automatically sized header for status page.
Pipeline #805980 passed
...@@ -7,6 +7,7 @@ class StatusGenerator < WikiGenerator ...@@ -7,6 +7,7 @@ class StatusGenerator < WikiGenerator
def generate_content(_options) def generate_content(_options)
@global_hash = get_global_hash @global_hash = get_global_hash
@site_uids = G5K::SITES @site_uids = G5K::SITES
@sites_number = @site_uids.length()
@generated_content = "__NOEDITSECTION__\n" @generated_content = "__NOEDITSECTION__\n"
@generated_content += "{{Status|In production}}\n" @generated_content += "{{Status|In production}}\n"
...@@ -35,10 +36,10 @@ class StatusGenerator < WikiGenerator ...@@ -35,10 +36,10 @@ class StatusGenerator < WikiGenerator
data = "= Resources reservations (OAR) status =\n" data = "= Resources reservations (OAR) status =\n"
data += MW::LINE_FEED data += MW::LINE_FEED
data += "{|\n" data += "{|\n"
data += "|bgcolor=\"#aaaaaa\" colspan=\"8\"|\n" data += "|bgcolor=\"#aaaaaa\" colspan=\"#{@sites_number}\"|\n"
data += "'''Drawgantt''' ''(past, current and future OAR jobs scheduling)''\n" data += "'''Drawgantt''' ''(past, current and future OAR jobs scheduling)''\n"
data += "|-\n" data += "|-\n"
data += "|bgcolor=\"#eeeeee\" colspan=\"8\"|\n" data += "|bgcolor=\"#eeeeee\" colspan=\"#{@sites_number}\"|\n"
data += "Default view:\n" data += "Default view:\n"
data += "|-\n" data += "|-\n"
...@@ -58,7 +59,7 @@ class StatusGenerator < WikiGenerator ...@@ -58,7 +59,7 @@ class StatusGenerator < WikiGenerator
end end
data += "|-\n" data += "|-\n"
data += "|bgcolor=\"#eeeeee\" colspan=\"8\"|\n" data += "|bgcolor=\"#eeeeee\" colspan=\"#{@sites_number}\"|\n"
data += "Forecast view for 1 week:\n" data += "Forecast view for 1 week:\n"
data += "|-\n" data += "|-\n"
...@@ -78,7 +79,7 @@ class StatusGenerator < WikiGenerator ...@@ -78,7 +79,7 @@ class StatusGenerator < WikiGenerator
end end
data += "|-\n" data += "|-\n"
data += "|bgcolor=\"#aaaaaa\" colspan=\"8\"|\n" data += "|bgcolor=\"#aaaaaa\" colspan=\"#{@sites_number}\"|\n"
data += "'''Monika''' ''(current placement and queued jobs status)''\n" data += "'''Monika''' ''(current placement and queued jobs status)''\n"
data += "|-\n" data += "|-\n"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment