Commit e6ba2a2a authored by Alain Takoudjou's avatar Alain Takoudjou

nxd: Show more than one ICP on footer page

ICPs should be listed in a string serapared by space
parent ac8559e5
......@@ -135,7 +135,12 @@ module PageLayoutHelper
# TODO render ICP only for requests from China
end
def render_icp
link_to extra_config.ICP, "http://www.miibeian.gov.cn/"
def render_icp(index = 0)
icp_list = extra_config.ICP.split
link_to icp_list[index], "https://beian.miit.gov.cn/#Integrated/index"
end
def has_second_icp?
should_render_icp? && extra_config.ICP.split.count > 1
end
end
......@@ -26,3 +26,6 @@
- if should_render_icp?
|
= render_icp
- if has_second_icp?
|
= render_icp(1)
......@@ -38,3 +38,5 @@
= link_to _("About Nexedi"), "http://www.nexedi.com/"
- if should_render_icp?
= render_icp
- if has_second_icp?
= render_icp(1)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment