Statistics
| Branch: | Tag: | Revision:

root / djnro / templates / flatpages / default.html @ d3ea44a4

History | View | Annotate | Download (1.5 kB)

1 017760f2 Stauros Kroustouris
{% extends "base.html" %}
2 017760f2 Stauros Kroustouris
3 017760f2 Stauros Kroustouris
{% load i18n %}
4 017760f2 Stauros Kroustouris
    {% block currentpagetitle %}{{ flatpage.title }}{% endblock %}
5 017760f2 Stauros Kroustouris
    {% block homepage %}{% endblock %}
6 017760f2 Stauros Kroustouris
    {% block hometop %}{% endblock %}
7 017760f2 Stauros Kroustouris
    {% block faq %}{% if "faq" in flatpage.url %}class="active"{% endif %}{% endblock %}
8 017760f2 Stauros Kroustouris
    {% block faqtop %}{% if "faq" in flatpage.url %}class="active"{% endif %}{% endblock %}
9 017760f2 Stauros Kroustouris
    {% block whatis %}{% if "what" in flatpage.url %}class="active"{% endif %}{% endblock %}
10 017760f2 Stauros Kroustouris
              
11 017760f2 Stauros Kroustouris
    {% block extrahead %}
12 017760f2 Stauros Kroustouris
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
13 017760f2 Stauros Kroustouris
        <META HTTP-EQUIV="Expires" CONTENT="-1">
14 017760f2 Stauros Kroustouris
    <style type="text/css">
15 017760f2 Stauros Kroustouris
      
16 017760f2 Stauros Kroustouris
      .headtitle {font-family: "Franklin Gothic Demi", "Franklin Gothic", "ITC Franklin Gothic", Arial, sans-serif; letter-spacing: -1px; }
17 017760f2 Stauros Kroustouris
    </style>
18 017760f2 Stauros Kroustouris
    <script type="text/javascript" src="/static/js/jquery.min.js"></script>
19 017760f2 Stauros Kroustouris
 
20 017760f2 Stauros Kroustouris
<script type="text/javascript">
21 017760f2 Stauros Kroustouris

22 017760f2 Stauros Kroustouris
        function setlang(lang) {
23 017760f2 Stauros Kroustouris
                $("#langsel").val(lang);
24 017760f2 Stauros Kroustouris
                var form = $("#langform");
25 017760f2 Stauros Kroustouris
                $.ajax({
26 017760f2 Stauros Kroustouris
                                url: form.attr('action'), 
27 017760f2 Stauros Kroustouris
                                data: form.serialize(),
28 017760f2 Stauros Kroustouris
                                type: "POST",
29 017760f2 Stauros Kroustouris
                                cache: false,
30 017760f2 Stauros Kroustouris
                                success:function(data){
31 017760f2 Stauros Kroustouris
                                                window.location.href=location.href + "../" + lang + "/";
32 017760f2 Stauros Kroustouris
                                        }
33 017760f2 Stauros Kroustouris
                });
34 017760f2 Stauros Kroustouris
                
35 017760f2 Stauros Kroustouris
        }
36 017760f2 Stauros Kroustouris
</script>
37 017760f2 Stauros Kroustouris
    
38 017760f2 Stauros Kroustouris
39 017760f2 Stauros Kroustouris
{% endblock %}
40 017760f2 Stauros Kroustouris
41 017760f2 Stauros Kroustouris
                {% block subcontent %}
42 017760f2 Stauros Kroustouris
                        <h4>{{ flatpage.title }}</h4>
43 017760f2 Stauros Kroustouris
                        <hr>
44 017760f2 Stauros Kroustouris
                        <div class="span6">
45 017760f2 Stauros Kroustouris
                        {{ flatpage.content|linebreaks }}
46 017760f2 Stauros Kroustouris
                        </div>
47 017760f2 Stauros Kroustouris
                {% endblock %}