aboutsummaryrefslogtreecommitdiff
path: root/glifestream/templates/base.html
blob: 8ddfdc70974d4c8b26dd440e662ad5fb1b105bd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{% load i18n static %}{% load url from future %}{% load firstof from future %}<!DOCTYPE html>
<html>

<head>
  <title>{% firstof page.title "Lifestream" %}</title>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">{% if not page.exactentry and page.description %}
  <meta name="description" content="{{ page.description|safe }}">{% endif %}
  <meta name="generator" content="gLifestream">
  <meta name="robots" content="{{ page.robots }}">
  <link rel="shortcut icon" href="{{ page.favicon }}">{% if page.canonical_link %}
  <link rel="canonical" href="{{ page.canonical_link }}">{% endif %}
  <link rel="alternate" type="application/atom+xml" title="Webfeed" href="{% if page.exactentry %}{% url 'index' %}{% endif %}?format=atom">
  <link rel="stylesheet" type="text/css" href="{% get_static_prefix %}themes/{% firstof page.theme "default" %}/style.css">
  <script type="text/javascript" src="{% static "js/jquery.js" %}"></script>
  <script type="text/javascript" src="{% static "js/glifestream.js" %}"></script>{% if authed %}
  <script type="text/javascript" src="{% static "js/tinymce/tinymce.min.js" %}"></script>{% endif %}
</head>

<body>
<div id="main">

<header id="head">
  <nav id="navtop" class="tb">
    {% if authed %}
    <span class="text">{% trans "Hello" %} <b>{{ user.email }}</b></span> |
    <a href="{% url 'index' %}" title="{% trans "My private stream" %}">{% trans "Home" %}</a> |
    <a href="{% url 'public' %}" title="{% trans "My publicly visible stream" %}" accesskey="2">{% trans "Public" %}</a> |
    {% if user.is_staff %}<a href="{% url 'settings' %}">{% trans "Settings" %}</a> |{% endif %}
    <a href="{% url 'django.contrib.auth.views.logout' %}">{% trans "Logout" %}</a>
    {% else %}
    {% if friend %}<span class="text">{% trans "Hello" %}
    <a href="{{ user.fb_profile_url }}" target="_blank"><b>{{ user.fb_username }}</b></a></span> |
    <a href="{% url 'django.contrib.auth.views.logout' %}">{% trans "Logout" %}</a>
    {% else %}
    {% if page.login_url %}<a href="{{ page.login_url }}" rel="nofollow">{% trans "Login" %}</a>{% endif %}
    {% endif %}
    {% endif %}
  </nav>
  <h1 class="tb"><a href="{% url 'index' %}" accesskey="1">{% trans "The Stream" %}</a></h1>
</header>

{% block sidebar %}{% endblock sidebar %}
{% block main %}{% endblock main %}

<footer id="foot">
  {% block copyright %}{% endblock copyright %}
  <p id="poweredby">{% trans "Powered by" %} <a href="http://glifestream.gnu.org.ua/" title="{% trans "A free and open source lifestream platform and social activity reader" %}">gLifestream</a>.
  {% if page.themes_more %}<span tabindex="0" id="change-theme" class="link">{% trans "Change theme" %}</span>.{% endif %}</p>
</footer>

{% include "user-scripts.js" %}

{% if page.need_fbc %}
<div id="fb-root"></div>
<script type="text/javascript" src="http://connect.facebook.net/en_US/all.js"></script>
<script type="text/javascript">
function fb_login_friend () { window.location = '{% url "gauth.views.login_friend" %}'; }
$(document).ready (function () {
  FB.init ({appId: '{{ page.fb_app_id }}', status: true, cookie: true, xfbml: true});
});
</script>{% endif %}

<script type="text/javascript">
var settings = {
  baseurl: '{% url "index" %}',
  maps_engine: '{{ page.maps_engine }}',
  themes: [{% for theme in page.themes %}'{{ theme }}'{% if not forloop.last %}, {% endif %}{% endfor %}]
};
{% include "i18n.html" %}</script>

</div><!-- /main -->
</body>
</html>

Return to:

Send suggestions and report system problems to the System administrator.