2016-01-08 21:31:58 +01:00
|
|
|
<div ng-controller="SlideMotionCtrl" class="content scrollcontent">
|
2016-01-13 00:07:53 +01:00
|
|
|
|
|
|
|
<div id="sidebox">
|
|
|
|
<!-- State -->
|
|
|
|
<h3 translate>State</h3>
|
2016-10-27 14:01:12 +02:00
|
|
|
{{ motion.getStateName() }}
|
2016-01-13 00:07:53 +01:00
|
|
|
|
2016-11-30 22:58:47 +01:00
|
|
|
<!-- Recommendation -->
|
|
|
|
<div ng-if="motion.getRecommendationName() != ''">
|
2016-12-02 16:20:44 +01:00
|
|
|
<h3>{{ config('motions_recommendations_by') }}</h3>
|
2016-11-30 22:58:47 +01:00
|
|
|
{{ motion.getRecommendationName() }}
|
|
|
|
</div>
|
|
|
|
|
2016-01-13 00:07:53 +01:00
|
|
|
<!-- Submitters -->
|
|
|
|
<h3 ng-if="motion.submitters.length > 0" translate>Submitters</h3>
|
|
|
|
<div ng-repeat="submitter in motion.submitters">
|
|
|
|
{{ submitter.get_full_name() }}<br>
|
|
|
|
</div>
|
2016-02-08 22:15:31 +01:00
|
|
|
|
|
|
|
<!-- Poll results -->
|
2016-09-05 23:13:07 +02:00
|
|
|
<h3 ng-if="motion.polls.length > 0 && motion.polls[0].has_votes" translate>Voting result</h3>
|
2016-02-08 22:15:31 +01:00
|
|
|
<div ng-repeat="poll in motion.polls | orderBy:'-id'" class="spacer">
|
|
|
|
<div ng-show="poll.has_votes" class="pollresults">
|
2016-02-27 20:10:24 +01:00
|
|
|
<strong ng-if="motion.polls.length > 1">
|
|
|
|
<translate>Vote</translate> {{ motion.polls.length - $index }}:
|
|
|
|
</strong>
|
2016-02-08 22:15:31 +01:00
|
|
|
<table class="transparentTable spacer">
|
|
|
|
<!-- yes -->
|
|
|
|
<tr>
|
|
|
|
<td class="icon">
|
|
|
|
<i class="fa fa-thumbs-up fa-2x"></i>
|
2016-06-07 16:13:30 +02:00
|
|
|
<td ng-init="voteYes = poll.getVote(poll.yes, 'yes')">
|
2016-02-08 22:15:31 +01:00
|
|
|
<span class="result_label"><translate>Yes</translate>:</span>
|
2016-02-27 20:10:24 +01:00
|
|
|
<span class="result_value">
|
|
|
|
{{ voteYes.value }} {{ voteYes.percentStr }}
|
|
|
|
</span>
|
2016-11-08 12:12:17 +01:00
|
|
|
<div ng-if="voteYes.percentNumber">
|
2016-02-27 20:10:24 +01:00
|
|
|
<uib-progressbar value="voteYes.percentNumber" type="success"></uib-progressbar>
|
2016-02-08 22:15:31 +01:00
|
|
|
</div>
|
|
|
|
<!-- no -->
|
|
|
|
<tr>
|
|
|
|
<td class="icon">
|
|
|
|
<i class="fa fa-thumbs-down fa-2x"></i>
|
2016-06-07 16:13:30 +02:00
|
|
|
<td ng-init="voteNo = poll.getVote(poll.no, 'no')">
|
2016-02-08 22:15:31 +01:00
|
|
|
<span class="result_label"><translate>No</translate>:</span>
|
2016-02-27 20:10:24 +01:00
|
|
|
<span class="result_value" >
|
|
|
|
{{ voteNo.value }} {{ voteNo.percentStr }}
|
|
|
|
</span>
|
2016-11-08 12:12:17 +01:00
|
|
|
<div ng-if="voteNo.percentNumber">
|
2016-02-27 20:10:24 +01:00
|
|
|
<uib-progressbar value="voteNo.percentNumber" type="danger"></uib-progressbar>
|
2016-02-08 22:15:31 +01:00
|
|
|
</div>
|
|
|
|
<!-- abstain -->
|
|
|
|
<tr>
|
|
|
|
<td class="icon">
|
|
|
|
<strong style="font-size: 26px">∅</strong>
|
2016-06-07 16:13:30 +02:00
|
|
|
<td ng-init="voteAbstain = poll.getVote(poll.abstain, 'abstain')">
|
2016-02-08 22:15:31 +01:00
|
|
|
<span class="result_label"><translate>Abstain</translate>:</span>
|
2016-02-27 20:10:24 +01:00
|
|
|
<span class="result_value">
|
|
|
|
{{ voteAbstain.value }} {{ voteAbstain.percentStr }}
|
|
|
|
</span>
|
2016-08-29 16:08:27 +02:00
|
|
|
<div ng-if="voteAbstain.percentNumber">
|
2016-02-27 20:10:24 +01:00
|
|
|
<uib-progressbar value="voteAbstain.percentNumber" type="warning"></uib-progressbar>
|
2016-02-08 22:15:31 +01:00
|
|
|
</div>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-01-13 00:07:53 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Title -->
|
|
|
|
<div id="title">
|
2016-03-18 11:00:31 +01:00
|
|
|
<h1>{{ motion.agenda_item.getTitle() || motion.getTitle() }}</h1>
|
2016-01-13 00:07:53 +01:00
|
|
|
<h2>
|
|
|
|
<translate>Motion</translate> {{ motion.identifier }}
|
2016-01-17 22:32:12 +01:00
|
|
|
<span ng-if="motion.versions.length > 1" >| Version {{ motion.getVersion().version_number }}</span>
|
2016-01-13 00:07:53 +01:00
|
|
|
</h2>
|
|
|
|
</div>
|
|
|
|
|
2016-12-12 12:51:27 +01:00
|
|
|
<!-- Preamble -->
|
2016-12-19 10:40:55 +01:00
|
|
|
<div><p>{{ config('motions_preamble') | translate }}</p></div><br>
|
2016-12-12 12:51:27 +01:00
|
|
|
|
2016-01-13 00:07:53 +01:00
|
|
|
<!-- Text -->
|
2016-12-19 10:40:55 +01:00
|
|
|
<!-- <div ng-bind-html="motion.getTextWithLineBreaks(null, line, scroll) | trusted"
|
|
|
|
class="motion-text line-numbers-{{ config('motions_default_line_numbering') }}"></div> -->
|
|
|
|
|
|
|
|
<!-- Original view -->
|
|
|
|
<div ng-if="mode == 'original'">
|
|
|
|
<div id="view-original-inline-editor" ng-bind-html="motion.getTextWithLineBreaks(null, line, scroll) | trusted"
|
|
|
|
class="motion-text motion-text-original line-numbers-{{ config('motions_default_line_numbering') }}"
|
|
|
|
contenteditable="false"></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Diff View -->
|
|
|
|
<div ng-if="mode == 'diff'">
|
|
|
|
<!-- The actual diff view -->
|
|
|
|
<div class="motion-text-with-diffs line-numbers-{{ config('motions_default_line_numbering') }}">
|
|
|
|
<div ng-repeat="change in (changes = (change_recommendations | orderBy: 'line_from')) ">
|
|
|
|
|
|
|
|
<div class="motion-text original-text line-numbers-{{ config('motions_default_line_numbering') }}"
|
|
|
|
ng-bind-html="motion.getTextBetweenChangeRecommendations(null, changes[$index - 1], change, line) | trusted">
|
|
|
|
</div>
|
|
|
|
<div class="diff-box diff-box-{{ change.id }} clearfix">
|
|
|
|
<div class="motion-text motion-text-diff line-numbers-{{ lineNumberMode }}"
|
|
|
|
ng-bind-html="change.getDiff(motion, null, line) | trusted">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-02-15 22:14:37 +01:00
|
|
|
<div class="motion-text original-text line-numbers-{{ config('motions_default_line_numbering') }}"
|
|
|
|
ng-bind-html="motion.getTextRemainderAfterLastChangeRecommendation(null, changes, line) | trusted">
|
|
|
|
</div>
|
|
|
|
|
2016-12-19 10:40:55 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Changed View -->
|
|
|
|
<div ng-if="mode == 'changed'">
|
|
|
|
<div ng-bind-html="motion.getTextByMode('changed', null, line) | trusted"
|
|
|
|
class="motion-text motion-text-changed line-numbers-{{ config('motions_default_line_numbering') }}"></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Agreed View -->
|
|
|
|
<div ng-if="mode == 'agreed'">
|
|
|
|
<div ng-bind-html="motion.getTextByMode('agreed', null, line) | trusted"
|
|
|
|
class="motion-text motion-text-changed line-numbers-{{ config('motions_default_line_numbering') }}"></div>
|
|
|
|
</div>
|
2016-01-10 13:47:59 +01:00
|
|
|
|
2016-01-13 00:07:53 +01:00
|
|
|
<!-- Reason -->
|
2016-01-25 21:22:22 +01:00
|
|
|
<h3 ng-if="motion.getReason()" translate>Reason</h3>
|
2016-02-12 00:15:35 +01:00
|
|
|
<div ng-bind-html="motion.getReason() | trusted"></div>
|
2015-06-24 15:04:40 +02:00
|
|
|
</div>
|