Skip to content

Commit

Permalink
Update layout.html
Browse files Browse the repository at this point in the history
  • Loading branch information
miklosban committed Feb 21, 2020
1 parent df910a1 commit f02d553
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions official_docs/en/_templates/layout.html
Expand Up @@ -15,5 +15,26 @@
<a href="https://github.com/OpenBioMaps/documentation/tree/master/official_docs" class="fa fa-github"> Edit on GitHub</a>
</td>
</tr>
<tr>
<td style="padding: 0px 10px 0px 0px; text-align: right; vertical-align: bottom;">
{%- for lng in languages.split(' ') %}
{%- if lng != '' %}
{%- if lng == language %}
<img src="{{ pathto("_static/flagicons/"+lng+".png", 1) }}" alt="{{ lng }}" title="{{ lng }}" border="0" width="18px" height="13px"/>
{%- else %}
{% if language == 'en' %}
<a href="{{pathto(lng+"/"+pagename)}}"><img src="{{ pathto("_static/flagicons/"+lng+".png", 1) }}" alt="{{ lng }}" title="{{ lng }}" border="0" /></a>
{% else %}
{% if lng == 'en' %}
<a href="{{pathto("../"+pagename)}}"><img src="{{ pathto("_static/flagicons/"+lng+".png", 1) }}" alt="{{ lng }}" title="{{ lng }}" border="0" /></a>
{% else %}
<a href="{{pathto("../"+lng+"/"+pagename)}}"><img src="{{ pathto("_static/flagicons/"+lng+".png", 1) }}" alt="{{ lng }}" title="{{ lng }}" border="0" /></a>
{% endif %}
{% endif %}
{%- endif %}
{%- endif %}
{%- endfor %}
</td>
</tr>
</table>
{% endblock %}

0 comments on commit f02d553

Please sign in to comment.