Mentions légales du service

Skip to content
Snippets Groups Projects
Commit dfe8f615 authored by Lucas Nussbaum's avatar Lucas Nussbaum
Browse files

Add Portal|User to hardware pages

parent 6d131a85
No related branches found
No related tags found
No related merge requests found
Pipeline #74553 passed
...@@ -12,6 +12,7 @@ class G5KHardwareGenerator < WikiGenerator ...@@ -12,6 +12,7 @@ class G5KHardwareGenerator < WikiGenerator
@site_uids = G5K::SITES @site_uids = G5K::SITES
@generated_content = "__NOEDITSECTION__\n" @generated_content = "__NOEDITSECTION__\n"
@generated_content += "{{Portal|User}}\n"
@generated_content += "<div class=\"sitelink\">[[Hardware|Global]] | " + G5K::SITES.map { |e| "[[#{e.capitalize}:Hardware|#{e.capitalize}]]" }.join(" | ") + "</div>\n" @generated_content += "<div class=\"sitelink\">[[Hardware|Global]] | " + G5K::SITES.map { |e| "[[#{e.capitalize}:Hardware|#{e.capitalize}]]" }.join(" | ") + "</div>\n"
@generated_content += generate_summary @generated_content += generate_summary
@generated_content += "\n= Clusters =\n" @generated_content += "\n= Clusters =\n"
......
...@@ -213,7 +213,7 @@ class OarPropertiesGenerator < WikiGenerator ...@@ -213,7 +213,7 @@ class OarPropertiesGenerator < WikiGenerator
@@properties[prop]["possible_values"] ||= prop_hash["values"].join(", ") @@properties[prop]["possible_values"] ||= prop_hash["values"].join(", ")
} }
@generated_content = "Properties on resources managed by OAR allow users to select them according to their experiment's characteristics." + MW::LINE_FEED @generated_content = "{{Portal|User}}\nProperties on resources managed by OAR allow users to select them according to their experiment's characteristics." + MW::LINE_FEED
@generated_content += MW::heading("OAR Properties", 1) + MW::LINE_FEED @generated_content += MW::heading("OAR Properties", 1) + MW::LINE_FEED
@@categories.sort.to_h.each { |cat, cat_properties| @@categories.sort.to_h.each { |cat, cat_properties|
......
...@@ -9,6 +9,7 @@ class SiteHardwareGenerator < WikiGenerator ...@@ -9,6 +9,7 @@ class SiteHardwareGenerator < WikiGenerator
def generate_content def generate_content
@generated_content = "__NOTOC__\n__NOEDITSECTION__\n" @generated_content = "__NOTOC__\n__NOEDITSECTION__\n"
@generated_content += "{{Portal|User}}\n"
@generated_content += "<div class=\"sitelink\">[[Hardware|Global]] | " + G5K::SITES.map { |e| "[[#{e.capitalize}:Hardware|#{e.capitalize}]]" }.join(" | ") + "</div>\n" @generated_content += "<div class=\"sitelink\">[[Hardware|Global]] | " + G5K::SITES.map { |e| "[[#{e.capitalize}:Hardware|#{e.capitalize}]]" }.join(" | ") + "</div>\n"
@generated_content += "\n= Summary =\n" @generated_content += "\n= Summary =\n"
@generated_content += "'''#{generate_oneline_summary}'''\n" @generated_content += "'''#{generate_oneline_summary}'''\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