Commit 3256f1fc 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 b150a446
......@@ -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
......@@ -29,3 +29,6 @@
- if should_render_icp?
|
= render_icp
- if has_second_icp?
|
= render_icp(1)
......@@ -45,3 +45,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