2012-02-09 16:57:10 +01:00
|
|
|
|
{% load tags %}
|
|
|
|
|
{% load i18n %}
|
2012-04-14 14:51:56 +02:00
|
|
|
|
{% load staticfiles %}
|
2012-02-09 16:57:10 +01:00
|
|
|
|
|
2013-05-30 14:41:22 +02:00
|
|
|
|
<!DOCTYPE html>
|
2013-12-09 23:56:01 +01:00
|
|
|
|
<html lang="{{ LANGUAGE_CODE }}">
|
2011-07-31 10:46:29 +02:00
|
|
|
|
<head>
|
2012-09-05 00:20:28 +02:00
|
|
|
|
<meta charset="utf-8">
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
2011-07-31 10:46:29 +02:00
|
|
|
|
<title>{% block title %}{% get_config 'event_name' %}{% endblock %}</title>
|
2012-09-05 00:20:28 +02:00
|
|
|
|
<!-- styles -->
|
2014-01-14 23:22:29 +01:00
|
|
|
|
<link href="{% static 'css/bootstrap.min.css' %}" type="text/css" rel="stylesheet" />
|
|
|
|
|
<link href="{% static 'css/bootstrap-responsive.min.css' %}" type="text/css" rel="stylesheet" />
|
2014-03-12 22:15:05 +01:00
|
|
|
|
<link href="{% static 'css/jquery-ui/jquery-ui.custom.min.css'%}" type="text/css" rel="stylesheet" />
|
2014-01-14 23:22:29 +01:00
|
|
|
|
<link href="{% static 'css/base.css' %}" type="text/css" rel="stylesheet" />
|
2013-12-09 18:03:47 +01:00
|
|
|
|
<link href="{% static 'css/chatbox.css' %}" type="text/css" rel="stylesheet" />
|
2012-09-05 00:20:28 +02:00
|
|
|
|
<link href="{% static 'img/favicon.png' %}" type="image/png" rel="shortcut icon" />
|
2014-12-26 13:45:13 +01:00
|
|
|
|
<link href="{% static 'css/jquery.bsmselect.css' %}" type="text/css" rel="stylesheet" />
|
2013-02-16 16:19:20 +01:00
|
|
|
|
{% for stylefile in extra_stylefiles %}
|
|
|
|
|
<link href="{% static stylefile %}" type="text/css" rel="stylesheet" />
|
|
|
|
|
{% endfor %}
|
|
|
|
|
{% block header %}{% endblock %}
|
2011-07-31 10:46:29 +02:00
|
|
|
|
</head>
|
|
|
|
|
<body>
|
2012-09-05 00:20:28 +02:00
|
|
|
|
<!-- Navbar -->
|
|
|
|
|
<div class="container-fluid nopadding">
|
|
|
|
|
<div class="row-fluid">
|
|
|
|
|
<div class="span12">
|
|
|
|
|
<div id="header">
|
2013-05-30 14:41:22 +02:00
|
|
|
|
<a href="/" class="logo" title="{% trans 'Home' %}"><img src="{% static 'img/logo.png' %}" alt="{% trans 'Logo' %}" /></a>
|
2014-05-18 22:14:53 +02:00
|
|
|
|
<span class="title optional">{% get_config 'event_name' %}</span>
|
2013-01-31 10:19:56 +01:00
|
|
|
|
{% block loginbutton %}
|
2013-09-08 14:44:41 +02:00
|
|
|
|
<div class="pull-right">
|
|
|
|
|
<!-- Search field -->
|
2014-05-18 22:14:53 +02:00
|
|
|
|
<form id="searchbutton" class="navbar-search" action="{% url 'core_search' %}" method="get">
|
2013-09-08 14:44:41 +02:00
|
|
|
|
<div class="input-append">
|
2013-11-06 00:11:13 +01:00
|
|
|
|
<input type="text" id="id_q" name="q" class="input-medium" placeholder="{% trans 'Search' %}">
|
2013-09-08 14:44:41 +02:00
|
|
|
|
<button type="submit" class="btn"><i class="icon-search"></i></button>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
|
2013-12-09 18:03:47 +01:00
|
|
|
|
<!-- Chatbox button -->
|
|
|
|
|
{% if chat_messages != None %}
|
2014-03-12 22:15:05 +01:00
|
|
|
|
<button class="btn" id="chatboxbutton" data-toggle="button">
|
2013-12-09 18:03:47 +01:00
|
|
|
|
<i class="icon-comments"></i>
|
2014-05-18 22:14:53 +02:00
|
|
|
|
<span class="optional-small">{% trans 'Chat' %}</span>
|
2014-03-12 22:15:05 +01:00
|
|
|
|
<span id="newchatmessage"></span>
|
2013-12-09 18:03:47 +01:00
|
|
|
|
</button>
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
2013-09-08 14:44:41 +02:00
|
|
|
|
<!-- login/logout button -->
|
2013-10-19 22:16:43 +02:00
|
|
|
|
<div class="btn-group">
|
2013-09-08 14:44:41 +02:00
|
|
|
|
{% if user.is_authenticated %}
|
|
|
|
|
<a href="#" data-toggle="dropdown" class="btn dropdown-toggle">
|
2014-05-18 22:14:53 +02:00
|
|
|
|
<i class="icon-user"></i>
|
|
|
|
|
<span class="optional-small">{{ user.username }}</span>
|
2013-09-08 14:44:41 +02:00
|
|
|
|
<span class="caret"></span>
|
|
|
|
|
</a>
|
2013-10-28 21:42:16 +01:00
|
|
|
|
<ul class="dropdown-menu pull-right">
|
2013-09-08 14:44:41 +02:00
|
|
|
|
<li><a href="{% url 'user_settings' %}"><i class="icon-cog"></i> {% trans "Edit profile" %}</a></li>
|
|
|
|
|
<li><a href="{% url 'password_change' %}"><i class="icon-lock"></i> {% trans "Change password" %}</a></li>
|
|
|
|
|
<li class="divider"></li>
|
|
|
|
|
<li><a href="{% url 'user_logout' %}"><i class="icon-off"></i> {% trans "Logout" %}</a></li>
|
|
|
|
|
</ul>
|
|
|
|
|
{% else %}
|
|
|
|
|
<a href="{% url 'user_login' %}" class="btn"><i class="icon-login"></i> {% trans "Login" %}</a>
|
|
|
|
|
{% endif %}
|
|
|
|
|
</div>
|
2012-09-05 00:20:28 +02:00
|
|
|
|
</div>
|
2013-01-31 10:19:56 +01:00
|
|
|
|
{% endblock %}
|
2012-09-05 00:20:28 +02:00
|
|
|
|
</div> <!--/#header-->
|
|
|
|
|
</div> <!--/.span12-->
|
2011-07-31 10:46:29 +02:00
|
|
|
|
</div>
|
2012-09-05 00:20:28 +02:00
|
|
|
|
</div> <!--/.container-fluid-->
|
2011-07-31 10:46:29 +02:00
|
|
|
|
|
2013-12-09 23:56:01 +01:00
|
|
|
|
{% block body %}
|
|
|
|
|
<!-- Container -->
|
|
|
|
|
<div class="container-fluid" id="container">
|
|
|
|
|
<div class="row-fluid">
|
2011-07-31 10:46:29 +02:00
|
|
|
|
|
2013-12-09 23:56:01 +01:00
|
|
|
|
<!-- Sidebar navigation (main menu) -->
|
|
|
|
|
<div class="span2 leftmenu lefticon">
|
|
|
|
|
<ul>
|
|
|
|
|
{% for entry in main_menu_entries %}
|
|
|
|
|
<li{% if entry.is_active %} class="active"{% endif %}>
|
|
|
|
|
<a href="{{ entry.get_url }}" class="tooltip-right">
|
|
|
|
|
<span class="ico"><i class="{{ entry.get_icon_css_class }}"></i></span>
|
|
|
|
|
<span class="text">{{ entry }}</span>
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
2012-09-05 00:20:28 +02:00
|
|
|
|
|
2013-12-09 23:56:01 +01:00
|
|
|
|
<!-- Content -->
|
|
|
|
|
<div id="content" class="span10">
|
|
|
|
|
<div class="row-fluid">
|
|
|
|
|
<div class="span12">
|
|
|
|
|
<div id="notifications">
|
|
|
|
|
<div id="dummy-notification" class="notification" style="display:none">
|
|
|
|
|
<button type="button" class="close" data-dismiss="alert">×</button>
|
|
|
|
|
</div>
|
|
|
|
|
{% for message in messages %}
|
|
|
|
|
<div class="alert {% if message.tags %}alert-{{ message.tags }}{% endif %}">
|
|
|
|
|
<button type="button" class="close" data-dismiss="alert">×</button>
|
|
|
|
|
{{ message|safe }}
|
|
|
|
|
</div>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</div>
|
|
|
|
|
{% block content %}{% endblock %}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<hr />
|
|
|
|
|
<footer>
|
|
|
|
|
<small>
|
2014-04-08 20:33:07 +02:00
|
|
|
|
© Copyright 2011–2014 | Powered by <a href="http://openslides.org" target="_blank">OpenSlides</a> | <a href="{% url 'core_version' %}">Version</a>
|
2013-12-09 23:56:01 +01:00
|
|
|
|
</small>
|
|
|
|
|
</footer>
|
|
|
|
|
</div><!--/#content-->
|
2012-09-05 00:20:28 +02:00
|
|
|
|
|
2013-12-09 23:56:01 +01:00
|
|
|
|
</div><!--/.row-fluid-->
|
|
|
|
|
</div><!--/#container-->
|
|
|
|
|
{% endblock %}<!--/body-->
|
2012-09-05 00:20:28 +02:00
|
|
|
|
|
2013-12-09 18:03:47 +01:00
|
|
|
|
{% include 'core/chatbox.html' %}
|
|
|
|
|
|
2013-12-09 23:56:01 +01:00
|
|
|
|
<!-- JavaScript (Placed at the end of the document so the pages load faster) -->
|
2014-01-14 23:22:29 +01:00
|
|
|
|
<script src="{% static 'js/jquery/jquery.min.js' %}" type="text/javascript"></script>
|
2014-03-12 22:15:05 +01:00
|
|
|
|
<script src="{% static 'js/jquery/jquery.cookie.min.js' %}" type="text/javascript"></script>
|
|
|
|
|
<script src="{% static 'js/jquery/jquery-ui.custom.min.js' %}" type="text/javascript"></script>
|
2014-01-14 23:22:29 +01:00
|
|
|
|
<script src="{% static 'js/bootstrap.min.js' %}" type="text/javascript"></script>
|
2013-12-09 18:03:47 +01:00
|
|
|
|
<script src="{% static 'js/sockjs-0.3.min.js' %}" type="text/javascript"></script>
|
|
|
|
|
<script src="{% static 'js/utils.js' %}" type="text/javascript"></script>
|
|
|
|
|
<script src="{% static 'js/chatbox.js' %}" type="text/javascript"></script>
|
2013-02-05 21:33:07 +01:00
|
|
|
|
<script src="{% url 'django.views.i18n.javascript_catalog' %}" type="text/javascript"></script>
|
2014-12-26 13:45:13 +01:00
|
|
|
|
<script type="text/javascript" src="{% static 'js/jquery/jquery.bsmselect.js' %}"></script>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
// use jquery-bsmselect for all <select multiple> form elements
|
|
|
|
|
$("select[multiple]").bsmSelect({
|
|
|
|
|
removeLabel: '<sup><b>X</b></sup>',
|
|
|
|
|
containerClass: 'bsmContainer',
|
|
|
|
|
listClass: 'bsmList-custom',
|
|
|
|
|
listItemClass: 'bsmListItem-custom',
|
|
|
|
|
listItemLabelClass: 'bsmListItemLabel-custom',
|
|
|
|
|
removeClass: 'bsmListItemRemove-custom'
|
|
|
|
|
});
|
|
|
|
|
</script>
|
2013-03-01 17:13:12 +01:00
|
|
|
|
{% for javascript in extra_javascript %}
|
|
|
|
|
<script src="{% static javascript %}" type="text/javascript"></script>
|
|
|
|
|
{% endfor %}
|
2013-02-16 16:19:20 +01:00
|
|
|
|
{% block javascript %}{% endblock %}
|
2011-07-31 10:46:29 +02:00
|
|
|
|
</body>
|
|
|
|
|
</html>
|