aboutsummaryrefslogtreecommitdiff
path: root/glifestream/templates/base.html
diff options
context:
space:
mode:
Diffstat (limited to 'glifestream/templates/base.html')
-rw-r--r--glifestream/templates/base.html74
1 files changed, 74 insertions, 0 deletions
diff --git a/glifestream/templates/base.html b/glifestream/templates/base.html
new file mode 100644
index 0000000..ba79d2a
--- /dev/null
+++ b/glifestream/templates/base.html
@@ -0,0 +1,74 @@
+{% load i18n media %}{% load url 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, maximum-scale=1, user-scalable=no">{% 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="{% static %}themes/{% firstof page.theme "default" %}/style.css">
+ <script type="text/javascript" src="{% static_hash js/jquery.js %}"></script>
+ <script type="text/javascript" src="{% static_hash js/glifestream.js %}"></script>{% if authed %}
+ <script type="text/javascript" src="{% static_hash js/tiny_mce/tiny_mce.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.