little fixes

This commit is contained in:
FinnStutzenstein 2016-09-28 19:27:40 +02:00
parent 4a5aea0b81
commit 84cd3dbc77
3 changed files with 6 additions and 4 deletions

View File

@ -78,8 +78,10 @@
</div>
<div class="details">
<h3 translate>Description</h3>
<div class="white-space-pre-line">{{ assignment.description }}</div>
<div ng-if="assignment.description">
<h3 translate>Description</h3>
<div class="white-space-pre-line">{{ assignment.description }}</div>
</div>
<div ng-if="assignment.phase != 2">
<h3 translate>Candidates</h3>

View File

@ -215,7 +215,7 @@ angular.module('OpenSlidesApp.core', [
'$rootScope',
function ($http, $rootScope) {
// Loads server time and calculates server offset
$rootScope.serverOffset = Math.floor(Date.now() / 1000);
$rootScope.serverOffset = 0;
$http.get('/core/servertime/')
.then(function(data) {
$rootScope.serverOffset = Math.floor(Date.now() / 1000 - data.data);

View File

@ -56,7 +56,7 @@
</button>
<button class="btn" ng-click="mediafileFit()" title="{{ 'Reset zoom' | translate }}"
ng-class="presentedMediafile.scale=='page-fit' ? 'btn-primary' : 'btn-default'">
100%
<i class="fa fa-arrows-alt"></i>
</button>
<button class="btn btn-default" ng-click="mediafileZoomIn()" title="{{ 'Zoom in' | translate }}">
<i class="fa fa-search-plus"></i>