Commit 9f4441a4 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

* display only available languages in Language Widget.

* output simpler HTML in Breadcrumb Widget.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26957 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2e65993a
...@@ -60,20 +60,11 @@ ...@@ -60,20 +60,11 @@
<ul>\n <ul>\n
<li class="nobullet" \n <li class="nobullet" \n
i18n:translate=""\n i18n:translate=""\n
i18n:domain="ui"\n i18n:domain="ui">You are here: </li>\n
i18n:attributes="title"\n
title="This breadcrumb help you to remind you where you are in the web site.">You are here</li><span>&nbsp;:&nbsp;</span>\n
<li tal:repeat="breadcrumb breadcrumb_list">\n <li tal:repeat="breadcrumb breadcrumb_list">\n
<a href="#" tal:condition="not: repeat/breadcrumb/end"\n <a href="#" i18n:domain="ui"\n
i18n:domain="ui" i18n:attributes="title"\n
title="A previous emplacement in the web site."\n
tal:attributes="href python:breadcrumb[1].absolute_url();" \n tal:attributes="href python:breadcrumb[1].absolute_url();" \n
tal:content="python:breadcrumb[0]">Home</a>\n tal:content="python:breadcrumb[0]">Title</a>\n
<a href="#" tal:condition="repeat/breadcrumb/end"\n
i18n:domain="ui" i18n:attributes="title"\n
title="You are here."\n
tal:attributes="href python:breadcrumb[1].absolute_url();" \n
tal:content="python:breadcrumb[0]">Home</a>\n
</li>\n </li>\n
</ul>\n </ul>\n
</tal:block> </tal:block>
......
...@@ -49,20 +49,23 @@ ...@@ -49,20 +49,23 @@
portal_path python:request.get(\'current_web_site_url\', current_web_site.absolute_url());\n portal_path python:request.get(\'current_web_site_url\', current_web_site.absolute_url());\n
available_language_list current_web_site/getAvailableLanguageList;\n available_language_list current_web_site/getAvailableLanguageList;\n
language_list current_web_site/Localizer/get_languages_map;"\n language_list current_web_site/Localizer/get_languages_map;"\n
tal:condition="python:len(language_list) > 1">\n tal:condition="python:len(available_language_list) > 1">\n
<div class="navbuttonflag">\n <div class="navbuttonflag">\n
<ul>\n <ul>\n
<li tal:repeat="language language_list">\n <tal:block tal:repeat="language language_list">\n
<li tal:define="language_id language/id"\n
tal:condition="python:language_id in available_language_list">\n
<a href="./Base_doLanguage?select_language=en" title="English"\n <a href="./Base_doLanguage?select_language=en" title="English"\n
tal:attributes="href string:${portal_path}/Base_doLanguage?select_language=${language/id}">\n tal:attributes="href string:${portal_path}/Base_doLanguage?select_language=${language_id}">\n
<img src="./mf54_image/icon_flag_us.gif" alt="Flag"\n <img src="./mf54_image/icon_flag_us.gif" alt="Flag"\n
tal:attributes="src string:${portal_path}/mf54_image/icon_flag_${language/id}.png;\n tal:attributes="src string:${portal_path}/mf54_image/icon_flag_${language_id}.png;\n
title language/title;\n title language/title;\n
alt language/title" />\n alt language/title" />\n
</a>\n </a>\n
</li>\n </li>\n
</tal:block>\n
</ul>\n </ul>\n
</div>\n </div>\n
</tal:block>\n </tal:block>\n
......
81 82
\ No newline at end of file \ No newline at end of file
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