This commit is contained in:
parent
c164766fa5
commit
f17951f363
@ -19,6 +19,7 @@ angular.module('OpenSlidesApp.motions.projector', [
|
|||||||
|
|
||||||
.controller('SlideMotionCtrl', [
|
.controller('SlideMotionCtrl', [
|
||||||
'$scope',
|
'$scope',
|
||||||
|
'$timeout',
|
||||||
'Config',
|
'Config',
|
||||||
'Motion',
|
'Motion',
|
||||||
'MotionChangeRecommendation',
|
'MotionChangeRecommendation',
|
||||||
@ -27,8 +28,8 @@ angular.module('OpenSlidesApp.motions.projector', [
|
|||||||
'Notify',
|
'Notify',
|
||||||
'ProjectorID',
|
'ProjectorID',
|
||||||
'MotionPollDecimalPlaces',
|
'MotionPollDecimalPlaces',
|
||||||
function($scope, Config, Motion, MotionChangeRecommendation, ChangeRecommendationView, User,
|
function($scope, $timeout, Config, Motion, MotionChangeRecommendation,
|
||||||
Notify, ProjectorID, MotionPollDecimalPlaces) {
|
ChangeRecommendationView, User, Notify, ProjectorID, MotionPollDecimalPlaces) {
|
||||||
// Attention! Each object that is used here has to be dealt on server side.
|
// Attention! Each object that is used here has to be dealt on server side.
|
||||||
// Add it to the coresponding get_requirements method of the ProjectorElement
|
// Add it to the coresponding get_requirements method of the ProjectorElement
|
||||||
// class.
|
// class.
|
||||||
@ -42,6 +43,10 @@ angular.module('OpenSlidesApp.motions.projector', [
|
|||||||
if (!line) {
|
if (!line) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
$scope.highlight = line;
|
||||||
|
$timeout(function () {
|
||||||
|
$scope.highlight = 0;
|
||||||
|
}, 4000);
|
||||||
|
|
||||||
var scrollTop = null;
|
var scrollTop = null;
|
||||||
$('.line-number-' + line).each(function() {
|
$('.line-number-' + line).each(function() {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<h1 translate>Choose the paragraph to amend!</h1>
|
<h1 translate>Please choose the paragraph to amend</h1>
|
||||||
|
|
||||||
<div uib-alert ng-show="alert.show" ng-class="'alert-' + (alert.type || 'warning')" close="alert={}">
|
<div uib-alert ng-show="alert.show" ng-class="'alert-' + (alert.type || 'warning')" close="alert={}">
|
||||||
{{ alert.msg }}
|
{{ alert.msg }}
|
||||||
|
@ -48,7 +48,8 @@
|
|||||||
onaftersave="scrollToAndHighlight(gotoLinenumber)">
|
onaftersave="scrollToAndHighlight(gotoLinenumber)">
|
||||||
</span>
|
</span>
|
||||||
<div class="btn-group" ng-if="lineNumberMode != 'none'">
|
<div class="btn-group" ng-if="lineNumberMode != 'none'">
|
||||||
<button type="button" class="btn btn-sm btn-default" ng-click="lineNumberForm.$show()">
|
<button type="button" class="btn btn-sm btn-default" ng-click="lineNumberForm.$show()"
|
||||||
|
uib-tooltip="{{ 'Go to line' | translate }}">
|
||||||
<i class="fa fa-share"></i>
|
<i class="fa fa-share"></i>
|
||||||
<translate>go</translate>
|
<translate>go</translate>
|
||||||
</button>
|
</button>
|
||||||
@ -56,7 +57,7 @@
|
|||||||
ng-if="lineNumberMode != 'none' && motion.isProjected().length &&
|
ng-if="lineNumberMode != 'none' && motion.isProjected().length &&
|
||||||
operator.hasPerms('core.can_manage_projector')"
|
operator.hasPerms('core.can_manage_projector')"
|
||||||
ng-click="toggleLinesForProjector()"
|
ng-click="toggleLinesForProjector()"
|
||||||
uib-tooltip="{{ 'Show highlighted line also on projector.' | translate }}">
|
uib-tooltip="{{ 'Show highlighted line also on projector' | translate }}">
|
||||||
<i class="fa" ng-class="linesForProjector ? 'fa-check-square-o' : 'fa-square-o'"></i>
|
<i class="fa" ng-class="linesForProjector ? 'fa-check-square-o' : 'fa-square-o'"></i>
|
||||||
<i class="fa fa-video-camera"></i>
|
<i class="fa fa-video-camera"></i>
|
||||||
</button>
|
</button>
|
||||||
|
@ -94,7 +94,7 @@
|
|||||||
<!-- Text -->
|
<!-- Text -->
|
||||||
<!-- Original view -->
|
<!-- Original view -->
|
||||||
<div ng-if="mode == 'original'">
|
<div ng-if="mode == 'original'">
|
||||||
<div id="view-original-inline-editor" ng-bind-html="motion.getTextWithLineBreaks(null, line) | trusted"
|
<div id="view-original-inline-editor" ng-bind-html="motion.getTextWithLineBreaks(null, highlight) | trusted"
|
||||||
class="motion-text motion-text-original line-numbers-{{ config('motions_default_line_numbering') }}"
|
class="motion-text motion-text-original line-numbers-{{ config('motions_default_line_numbering') }}"
|
||||||
contenteditable="false"></div>
|
contenteditable="false"></div>
|
||||||
</div>
|
</div>
|
||||||
@ -130,19 +130,19 @@
|
|||||||
|
|
||||||
<!-- Changed View -->
|
<!-- Changed View -->
|
||||||
<div ng-if="mode == 'changed'">
|
<div ng-if="mode == 'changed'">
|
||||||
<div ng-bind-html="motion.getTextByMode('changed', null, line) | trusted"
|
<div ng-bind-html="motion.getTextByMode('changed', null, highlight) | trusted"
|
||||||
class="motion-text motion-text-changed line-numbers-{{ config('motions_default_line_numbering') }}"></div>
|
class="motion-text motion-text-changed line-numbers-{{ config('motions_default_line_numbering') }}"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Agreed View -->
|
<!-- Agreed View -->
|
||||||
<div ng-if="mode == 'agreed'">
|
<div ng-if="mode == 'agreed'">
|
||||||
<div ng-bind-html="motion.getTextByMode('agreed', null, line) | trusted"
|
<div ng-bind-html="motion.getTextByMode('agreed', null, highlight) | trusted"
|
||||||
class="motion-text motion-text-changed line-numbers-{{ config('motions_default_line_numbering') }}"></div>
|
class="motion-text motion-text-changed line-numbers-{{ config('motions_default_line_numbering') }}"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Modified agreed View -->
|
<!-- Modified agreed View -->
|
||||||
<div ng-if="mode == 'modified_agreed'">
|
<div ng-if="mode == 'modified_agreed'">
|
||||||
<div ng-bind-html="motion.getTextByMode('modified_agreed', null, line) | trusted"
|
<div ng-bind-html="motion.getTextByMode('modified_agreed', null, highlight) | trusted"
|
||||||
class="motion-text motion-text-changed line-numbers-{{ config('motions_default_line_numbering') }}"></div>
|
class="motion-text motion-text-changed line-numbers-{{ config('motions_default_line_numbering') }}"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -7,5 +7,5 @@ coverage
|
|||||||
# Use master of flake8 until flake8 3.6 is released that supports python3.7
|
# Use master of flake8 until flake8 3.6 is released that supports python3.7
|
||||||
git+https://gitlab.com/pycqa/flake8.git
|
git+https://gitlab.com/pycqa/flake8.git
|
||||||
isort==4.2.5
|
isort==4.2.5
|
||||||
mypy
|
mypy<=0.620
|
||||||
fakeredis
|
fakeredis
|
||||||
|
Loading…
Reference in New Issue
Block a user