base.html 2.52 KB
{% load url from future %}<!DOCTYPE HTML>
<!-- Website template by freewebsitetemplates.com -->
<html>
<head>
	<meta charset="UTF-8">
	<title>Periphraser</title>
	<link rel="stylesheet" href="{{ STATIC_URL }}css/main_style.css" type="text/css">

	<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/smoothness/jquery-ui.css" type="text/css">
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
	<script type="text/javascript" src="http://code.jquery.com/ui/1.12.1/jquery-ui.min.js"></script>
    {% load script json %}
    {% if js_vars %}
        {% script %}
            {% for name,var in js_vars.iteritems %}
                var {{ name }} = {{ var|jsonify }};
            {% endfor %}
        {% endscript %}
    {% endif %}
	{% block extrahead %}{% endblock %}

	<script>
	  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
	  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
	  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
	  })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

	  ga('create', 'UA-49926765-3', 'auto');
	  ga('send', 'pageview');
	</script>
</head>
<body>
	<div id="header">
		<div>
			<div class="logo">
				<a href="/">Periphraser</a>
			</div>
			<ul id="navigation">
				<li id="preview">
					<a href="{% url 'preview_page' %}">Podgląd</a>
				</li>
				{% if user.is_authenticated %}
					<li id="edit">
					    <a href="{% url 'edit_page' %}">Edycja</a>
				    </li>
                    <li id="account">
                        <a href="{% url 'auth_password_change' %}">{{ user.username }}</a>
		                <a href="{% url 'auth_logout' %}">(Wyloguj)</a>
                    </li>
				{% else %}
					<li id="account">
		                <a href="{% url 'auth_login' %}">Zaloguj</a>
                    </li>
                {% endif %}
			</ul>
		</div>
	</div>
	<div id="contents">
		{% block content %}{% endblock %}
	</div>
	<div id="footer">
		<div class="clearfix">
			<p>
				Periphraser logo graphic by <a href="http://www.flaticon.com/authors/roundicons">Roundicons</a> from <a href="http://www.flaticon.com/">Flaticon</a> is licensed under <a href="http://creativecommons.org/licenses/by/3.0/" title="Creative Commons BY 3.0">CC BY 3.0</a>. Made with <a href="http://logomakr.com" title="Logo Maker">Logo Maker</a>.
				<br>
				© 2016 IPI PAN. All Rights Reserved.
			</p>
		</div>
	</div>
</body>
</html>