Mentions légales du service

Skip to content
Snippets Groups Projects
Commit a390eb12 authored by Alexandre MERLIN's avatar Alexandre MERLIN
Browse files

[gen/wiki/env] fix footer (cf #14542)

parent 3a129c7b
Branches
No related tags found
1 merge request!473Bug14542
Pipeline #805266 passed
......@@ -69,7 +69,7 @@ class EnvironmentsGenerator < WikiGenerator
# Table construction
table_options = 'class="wikitable sortable" style="text-align: center;"'
@generated_content = MW.generate_table(table_options, table_columns, table_data)
@generated_content += MW.italic(MW.small(generated_date_string))
@generated_content += MW.italic(MW.small("Last generated from the Grid'5000 API on #{Time.now.strftime("%Y-%m-%d")}"))
@generated_content += MW::LINE_FEED
end
end
......@@ -34,7 +34,7 @@ class WikiGenerator
end
def remove_page_creation_date(content)
return content.gsub(/''<small>Last generated from the Grid'5000 Reference API on .+<\/small>''/, '')
return content.gsub(/''<small>Last generated from the Grid'5000.+<\/small>''/, '')
end
def generated_date_string
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment