Skip to content

Commit

Permalink
Fixes #4132 worldmap client print template (#4133)
Browse files Browse the repository at this point in the history
  • Loading branch information
capooti committed Dec 19, 2018
1 parent 68a7137 commit 1a8f527
Showing 1 changed file with 43 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{% load i18n %}
{% load static from staticfiles %}

<html>
<head>

<title>{% block title %}{% trans "WorldMap" %}{% endblock %}</title>
<link rel="shortcut icon" href="{% static "worldmap/theme/img/favicon.ico" %}"/>

{% if urlsuffix %}
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}{{urlsuffix}}/site.css" media="screen" />
{% else %}
<link rel="stylesheet" type="text/css" href="{% static "worldmap_client/theme/site.css" %}" />
{% endif %}
{% block head %}
{% endblock %}
</head>
<body style="min-height:600px">
{% block body %}
{% block header-wrapper %}
<div id="header"></div><!-- /#header -->
{% endblock header-wrapper %}
{% endblock body %}
<div id="langselect" style="display:inline">
<!-- Only show the language form if the csrf_token is present -->
{% if csrf_token != "NOTPROVIDED" %}
{% get_current_language as LANGUAGE %}
<form class="langbar" id="target" action="/i18n/setlang/" method="post">
{% csrf_token %}

<select id="langval" name="language" onchange="javascript:form.submit()">
{% for lang in LANGUAGES %}
<option value="{{ lang.0 }}"
{% ifequal LANGUAGE_CODE lang.0 %} selected="selected"{% endifequal %}>
{{ lang.1 }}
</option>
{% endfor %}
</select>
</form>
{% endif %}
</div>
</body>
</html>

0 comments on commit 1a8f527

Please sign in to comment.