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 228290a commit 12252ea
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions official_docs/en/_templates/layout.html
Expand Up @@ -17,23 +17,8 @@
</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 %}
<a href="http://openbiomaps.org/documentation/en/"><img src="_static/flagicons/en.png" alt="en" title="in English" border="0" /></a>
<a href="http://openbiomaps.org/documentation/hu/"><img src="_static/flagicons/hu.png" alt="hu" title="Magyarul" border="0" /></a>
</td>
</tr>
</table>
Expand Down

0 comments on commit 12252ea

Please sign in to comment.