2015-01-30 11:58:36 +01:00
|
|
|
<!DOCTYPE html>
|
2015-09-04 18:26:48 +02:00
|
|
|
<html lang="en" class="no-js"> <!-- TODO: make lang dynamic -->
|
2015-02-08 22:37:55 +01:00
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
<base href="/">
|
|
|
|
<title>OpenSlides</title>
|
|
|
|
<meta name="description" content="">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
<link rel="stylesheet" href="static/css/openslides-libs.css">
|
|
|
|
<link rel="stylesheet" href="static/css/app.css">
|
|
|
|
<script src="static/js/openslides-libs.js"></script>
|
2015-10-28 22:16:10 +01:00
|
|
|
<script src="static/ckeditor/ckeditor.js"></script>
|
2015-02-08 22:37:55 +01:00
|
|
|
|
|
|
|
<!-- Navbar -->
|
|
|
|
<nav id="header" class="navbar navbar-inverse">
|
|
|
|
<div class="container-fluid">
|
|
|
|
<div class="navbar-header">
|
|
|
|
<a ui-sref="dashboard" class="navbar-brand">
|
|
|
|
<img id="logo" src="/static/img/logo.png" alt="OpenSlides" />
|
|
|
|
</a>
|
2015-06-16 18:12:59 +02:00
|
|
|
<span class="navbar-text optional">{{ config('general_event_name') }}</span>
|
2015-02-08 22:37:55 +01:00
|
|
|
</div>
|
|
|
|
<div class="navbar-right" ng-controller="userMenu">
|
|
|
|
<div class="btn-group">
|
2015-11-21 20:14:19 +01:00
|
|
|
<!-- Logout / user setttings button -->
|
2015-02-08 22:37:55 +01:00
|
|
|
<div ng-if="operator.isAuthenticated()">
|
2015-03-09 15:40:54 +01:00
|
|
|
|
2015-11-16 21:10:33 +01:00
|
|
|
<!-- chatbox -->
|
|
|
|
<div ng-controller="ChatMessageCtrl" os-perms="core.can_use_chat" class="inline">
|
|
|
|
<button ng-click="openChatbox()" class="btn btn-default">
|
|
|
|
<i class="fa fa-comment"></i>
|
|
|
|
<translate>Chat</translate>
|
|
|
|
<span ng-if="unreadMessages > 0 && chatboxIsCollapsed" class="badge">
|
|
|
|
{{ unreadMessages }}
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
<div id="chatbox" class="well" uib-collapse="chatboxIsCollapsed">
|
|
|
|
<div id="chatbox-text" scroll-glue>
|
|
|
|
<ul class="list-unstyled">
|
|
|
|
<li ng-repeat="chatmessage in chatmessages">
|
|
|
|
<small class="grey">{{ chatmessage.timestamp | date:'HH:mm:ss' }}</small>
|
|
|
|
<small>{{ chatmessage.user.short_name }}:</small>
|
|
|
|
{{ chatmessage.message }}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div id="chatbox-form">
|
|
|
|
<form ng-submit="sendMessage()">
|
|
|
|
<div class="input-group">
|
|
|
|
<input ng-model="newMessage" id="messageInput" class="form-control" type="text">
|
|
|
|
<span class="input-group-btn">
|
|
|
|
<button type="submit" class="btn btn-default" id="messageSendButton">
|
|
|
|
<i class="fa fa-comment"></i>
|
|
|
|
</button>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- user settings / logout button -->
|
2015-11-27 23:09:38 +01:00
|
|
|
<div class="btn-group" uib-dropdown>
|
|
|
|
<button type="button" class="btn btn-default" uib-dropdown-toggle>
|
2015-03-09 15:40:54 +01:00
|
|
|
<i class="fa fa-user"></i>
|
|
|
|
<span class="optional-small">{{ operator.user.get_short_name() }}</span>
|
|
|
|
<span class="caret"></span>
|
|
|
|
</button>
|
2015-11-27 23:09:38 +01:00
|
|
|
<ul class="uib-dropdown-menu pull-right" role="menu" aria-labelledby="single-button">
|
2015-09-04 18:26:48 +02:00
|
|
|
<li>
|
|
|
|
<a ui-sref="users.user.detail.profile({ id: operator.user.id })">
|
|
|
|
<i class="fa fa-cog"></i>
|
|
|
|
<translate>Edit profile</translate>
|
|
|
|
</a>
|
|
|
|
<li>
|
2015-11-06 15:44:27 +01:00
|
|
|
<a ui-sref="users.user.detail.password({ id: operator.user.id })">
|
2015-09-04 18:26:48 +02:00
|
|
|
<i class="fa fa-key"></i>
|
|
|
|
<translate>Change password</translate>
|
|
|
|
</a>
|
2015-03-09 15:40:54 +01:00
|
|
|
<li class="divider">
|
2015-09-04 18:26:48 +02:00
|
|
|
<li>
|
|
|
|
<a ng-click="logout()" href="">
|
|
|
|
<i class="fa fa-sign-out"></i>
|
|
|
|
<translate>Logout</translate>
|
|
|
|
</a>
|
2015-03-09 15:40:54 +01:00
|
|
|
</ul>
|
|
|
|
</div>
|
2015-02-08 22:37:55 +01:00
|
|
|
</div>
|
2015-11-21 20:14:19 +01:00
|
|
|
<!-- Login button -->
|
|
|
|
<div ng-if="!operator.isAuthenticated()">
|
|
|
|
<button class="btn btn-default" ng-click="openLoginForm()">
|
2015-02-08 22:37:55 +01:00
|
|
|
<i class="fa fa-sign-in"></i>
|
|
|
|
<translate>Login</translate>
|
|
|
|
</button>
|
2015-01-30 11:58:36 +01:00
|
|
|
</div>
|
2015-02-08 22:37:55 +01:00
|
|
|
</div>
|
2015-03-09 15:40:54 +01:00
|
|
|
|
2015-02-08 22:37:55 +01:00
|
|
|
<!-- language switcher -->
|
2015-11-27 23:09:38 +01:00
|
|
|
<div class="btn-group" ng-controller="LanguageCtrl" uib-dropdown>
|
|
|
|
<button class="btn btn-default" uib-dropdown-toggle>
|
2015-02-08 22:37:55 +01:00
|
|
|
<i class="fa fa-flag"></i>
|
|
|
|
<span class="caret"></span>
|
|
|
|
</button>
|
2015-11-27 23:09:38 +01:00
|
|
|
<ul class="uib-dropdown-menu uib-dropdown-menu-right" role="menu" aria-labelledby="single-button">
|
2015-09-05 17:15:37 +02:00
|
|
|
<li>
|
|
|
|
<a href="" ng-click="switchLanguage('en')">
|
|
|
|
<i class="fa fa-flag"></i>
|
|
|
|
<translate>English</translate> (EN)
|
|
|
|
</a>
|
|
|
|
<li>
|
|
|
|
<a href="" ng-click="switchLanguage('de')">
|
|
|
|
<i class="fa fa-flag"></i>
|
|
|
|
<translate>German</translate> (DE)
|
|
|
|
</a>
|
|
|
|
<li>
|
|
|
|
<a href="" ng-click="switchLanguage('fr')">
|
|
|
|
<i class="fa fa-flag"></i>
|
|
|
|
<translate>French</translate> (FR)
|
|
|
|
</a>
|
2015-02-08 22:37:55 +01:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</nav>
|
2015-01-30 11:58:36 +01:00
|
|
|
|
2015-02-08 22:37:55 +01:00
|
|
|
<!-- Container -->
|
2015-09-21 22:02:23 +02:00
|
|
|
<div id="container" class="container-fluid">
|
2015-02-08 22:37:55 +01:00
|
|
|
<div class="row">
|
2015-09-21 22:02:23 +02:00
|
|
|
<!-- Main menu -->
|
|
|
|
<div id="main-menu" class="col-md-2 leftmenu lefticon">
|
2015-09-05 17:15:37 +02:00
|
|
|
<ul ng-controller="MainMenuCtrl">
|
|
|
|
<li ng-repeat="element in elements">
|
|
|
|
<a ui-sref="{{ element.ui_sref }}">
|
|
|
|
<span class="ico"><i class="fa fa-{{ element.img_class }} fa-lg"></i></span>
|
|
|
|
<span class="text" translate>{{ element.title }}</span>
|
2015-03-09 15:40:54 +01:00
|
|
|
</a>
|
2015-02-08 22:37:55 +01:00
|
|
|
</ul>
|
2015-09-21 22:02:23 +02:00
|
|
|
</div><!--/#main-menu-->
|
2015-02-08 22:37:55 +01:00
|
|
|
<!-- Content -->
|
2015-11-21 20:14:19 +01:00
|
|
|
<div id="content" class="col-md-7">
|
2015-02-08 22:37:55 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<div ui-view></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div><!--/#content-->
|
2015-11-21 20:14:19 +01:00
|
|
|
<div class="col-sm-3" os-perms="core.can_see_projector">
|
|
|
|
<div class="well">
|
|
|
|
<div ng-include src="'static/templates/core/projector-controls.html'"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-02-08 22:37:55 +01:00
|
|
|
</div><!--/.row-->
|
2015-09-21 22:02:23 +02:00
|
|
|
|
|
|
|
<hr>
|
|
|
|
<footer>
|
|
|
|
<small>
|
2015-11-16 21:10:33 +01:00
|
|
|
© Copyright by <a href="http://www.openslides.org" target="_blank">OpenSlides</a> |
|
2015-09-21 22:02:23 +02:00
|
|
|
<a ui-sref="version">Version</a>
|
|
|
|
</small>
|
|
|
|
</footer>
|
2015-02-08 22:37:55 +01:00
|
|
|
</div><!--/#container-->
|
2015-01-30 11:58:36 +01:00
|
|
|
|
2015-07-01 17:48:41 +02:00
|
|
|
<script src="/angular_js/site/"></script>
|