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="">
|
2015-11-29 22:25:01 +01:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;">
|
2015-02-08 22:37:55 +01:00
|
|
|
<link rel="stylesheet" href="static/css/openslides-libs.css">
|
|
|
|
<link rel="stylesheet" href="static/css/app.css">
|
2015-11-29 22:25:01 +01:00
|
|
|
<link rel="icon" href="/static/img/favicon.png">
|
2015-02-08 22:37:55 +01:00
|
|
|
<script src="static/js/openslides-libs.js"></script>
|
2015-10-28 22:16:10 +01:00
|
|
|
<script src="static/ckeditor/ckeditor.js"></script>
|
2015-11-29 22:25:01 +01:00
|
|
|
<div id="wrapper">
|
2015-02-08 22:37:55 +01:00
|
|
|
|
2015-11-29 22:25:01 +01:00
|
|
|
<!-- Header -->
|
|
|
|
<div id="header">
|
|
|
|
<div class="containerOS">
|
|
|
|
<!-- Logo -->
|
|
|
|
<div class="title">
|
|
|
|
<a ui-sref="dashboard">
|
|
|
|
<img src="/static/img/openslides-logo-dark.png" alt="Logo" height="35">
|
2015-02-08 22:37:55 +01:00
|
|
|
</a>
|
2015-11-29 22:25:01 +01:00
|
|
|
<!-- TODO: <span class="navbar-text optional">{{ config('general_event_name') }}</span>-->
|
2015-02-08 22:37:55 +01:00
|
|
|
</div>
|
2015-11-29 22:25:01 +01:00
|
|
|
|
|
|
|
<!-- user specific header (chat, user settings / login, language)-->
|
|
|
|
<div class="user" ng-controller="userMenu">
|
2015-02-08 22:37:55 +01:00
|
|
|
<div class="btn-group">
|
|
|
|
<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">
|
2015-12-01 12:06:15 +01:00
|
|
|
<a href ng-click="openChatbox()" class="headerlink"
|
|
|
|
ng-class="{ 'active': !chatboxIsCollapsed }" uib-dropdown-toggle>
|
2015-11-16 21:10:33 +01:00
|
|
|
<i class="fa fa-comment"></i>
|
|
|
|
<translate>Chat</translate>
|
|
|
|
<span ng-if="unreadMessages > 0 && chatboxIsCollapsed" class="badge">
|
|
|
|
{{ unreadMessages }}
|
|
|
|
</span>
|
2015-12-01 12:06:15 +01:00
|
|
|
</a> |
|
2015-11-16 21:10:33 +01:00
|
|
|
<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-12-01 12:06:15 +01:00
|
|
|
<span uib-dropdown>
|
|
|
|
<a href class="headerlink" uib-dropdown-toggle>
|
2015-03-09 15:40:54 +01:00
|
|
|
<i class="fa fa-user"></i>
|
2015-12-01 12:06:15 +01:00
|
|
|
<span>{{ operator.user.get_short_name() }}</span>
|
|
|
|
</a>
|
|
|
|
<ul class="uib-dropdown-menu pull-right" role="menu" aria-labelledby="simple-dropdown">
|
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>
|
2015-12-01 12:06:15 +01:00
|
|
|
</span>
|
2015-02-08 22:37:55 +01:00
|
|
|
</div>
|
2015-11-21 20:14:19 +01:00
|
|
|
<!-- Login button -->
|
|
|
|
<div ng-if="!operator.isAuthenticated()">
|
2015-12-11 21:18:45 +01:00
|
|
|
<a href ui-sref="login({guest_enabled: true})" class="headerlink" uib-dropdown-toggle>
|
2015-02-08 22:37:55 +01:00
|
|
|
<i class="fa fa-sign-in"></i>
|
|
|
|
<translate>Login</translate>
|
2015-12-01 12:06:15 +01:00
|
|
|
</a>
|
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-12-01 12:06:15 +01:00
|
|
|
<span ng-controller="LanguageCtrl" uib-dropdown>
|
|
|
|
| <a href class="headerlink" uib-dropdown-toggle>
|
2015-02-08 22:37:55 +01:00
|
|
|
<i class="fa fa-flag"></i>
|
2015-12-01 12:06:15 +01:00
|
|
|
{{ selectedLanguage[0].name | translate }}
|
|
|
|
</a>
|
|
|
|
<ul class="uib-dropdown-menu pull-right" role="menu" aria-labelledby="simple-dropdown">
|
|
|
|
<li ng-repeat="language in languages">
|
|
|
|
<a href="" ng-click="switchLanguage(language.code)">
|
|
|
|
<i ng-if="language.selected" class="fa fa-check"></i>
|
|
|
|
{{ language.name | translate }}
|
2015-09-05 17:15:37 +02:00
|
|
|
</a>
|
2015-12-01 12:06:15 +01:00
|
|
|
</span>
|
2015-11-29 22:25:01 +01:00
|
|
|
|
2015-02-08 22:37:55 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2015-11-29 22:25:01 +01:00
|
|
|
</div><!--end header-->
|
2015-01-30 11:58:36 +01:00
|
|
|
|
2015-11-29 22:25:01 +01:00
|
|
|
<!-- Navbar -->
|
|
|
|
<div id="nav">
|
|
|
|
<div class="containerOS">
|
|
|
|
<div class="navbar">
|
|
|
|
<div class="button"><a href="#"><i class="fa fa-bars"></i></a></div>
|
|
|
|
<!-- Main menu -->
|
2015-09-05 17:15:37 +02:00
|
|
|
<ul ng-controller="MainMenuCtrl">
|
2015-11-29 22:25:01 +01:00
|
|
|
<li ng-repeat="element in elements" ui-sref-active="active">
|
2015-09-05 17:15:37 +02:00
|
|
|
<a ui-sref="{{ element.ui_sref }}">
|
2015-11-29 22:25:01 +01:00
|
|
|
<i class="fa fa-{{ element.img_class }}"></i>
|
2015-11-30 23:52:42 +01:00
|
|
|
{{ element.title | translate }}
|
2015-03-09 15:40:54 +01:00
|
|
|
</a>
|
2015-02-08 22:37:55 +01:00
|
|
|
</ul>
|
2015-11-29 22:25:01 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div><!--end nav-->
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Content -->
|
|
|
|
<div id="content" ng-controller="ProjectorSidebarCtrl">
|
|
|
|
<div class="containerOS">
|
|
|
|
<div class="col1" ng-class="isProjectorSidebar ? 'min' : 'max'">
|
|
|
|
<!-- dynamic views -->
|
|
|
|
<div ui-view></div>
|
|
|
|
<!-- footer -->
|
|
|
|
<div id="footer">
|
|
|
|
© Copyright by <a href="http://www.openslides.org" target="_blank">OpenSlides</a> |
|
|
|
|
<a ui-sref="version">Version</a>
|
|
|
|
</div><!--end footer-->
|
|
|
|
</div>
|
|
|
|
<div class="col2" os-perms="core.can_see_projector"
|
|
|
|
ng-class="isProjectorSidebar ? 'max' : 'min'">
|
|
|
|
<!-- sidebar maximized -->
|
|
|
|
<div class="projector_full" ng-if="isProjectorSidebar">
|
|
|
|
<div class="title" ng-click="showProjectorSidebar(false)">
|
|
|
|
<div class="name">
|
|
|
|
<i class="fa fa-caret-square-o-right"></i>
|
|
|
|
<translate>Projector</translate>
|
|
|
|
</div>
|
|
|
|
<div class="icon">
|
|
|
|
<i class="fa fa-video-camera"></i>
|
|
|
|
</div>
|
2015-02-08 22:37:55 +01:00
|
|
|
</div>
|
2015-11-21 20:14:19 +01:00
|
|
|
<div ng-include src="'static/templates/core/projector-controls.html'"></div>
|
|
|
|
</div>
|
2015-11-29 22:25:01 +01:00
|
|
|
<!-- sidebar minimized -->
|
|
|
|
<div class="projector_min" ng-if="!isProjectorSidebar">
|
|
|
|
<div class="icon">
|
|
|
|
<a href="" ng-click="showProjectorSidebar(true)">
|
|
|
|
<i class="fa fa-video-camera"></i>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div><!--end col2-->
|
|
|
|
|
2015-12-10 00:02:16 +01:00
|
|
|
</div><!--end content-container-->
|
|
|
|
</div><!--end content-->
|
2015-11-29 22:25:01 +01:00
|
|
|
|
|
|
|
</div><!--end wrapper-->
|
2015-09-21 22:02:23 +02:00
|
|
|
|
2015-01-30 11:58:36 +01:00
|
|
|
|
2015-07-01 17:48:41 +02:00
|
|
|
<script src="/angular_js/site/"></script>
|