<tal:var define="langs view/langs; current view/current;" condition="langs" i18n:domain="ztfy.myams">
	<a href="#" class="dropdown-toggle" data-toggle="dropdown">
		<img alt=""
			 tal:attributes="src string:/--static--/ztfy.i18n/img/flags/${current}.png">
		<i class="fa fa-angle-down"></i>
	</a>
	<ul class="dropdown-menu pull-right">
		<tal:loop repeat="lang langs">
			<li tal:attributes="class python:'active' if lang == current else ''">
				<a href="javascript:void(0);"
				   data-ams-click-handler="MyAMS.skin.setLanguage"
				   tal:attributes='data-ams-click-handler-options string:{"lang": "${lang}"}'>
					<img alt="" tal:attributes="src string:/--static--/ztfy.i18n/img/flags/${lang}.png">
					<span tal:content="python:view.getLabel(lang)" />
				</a>
			</li>
		</tal:loop>
	</ul>
</tal:var>
