Merge pull request #3078 from emanuelschuetze/template-fixes

Several template fixes
This commit is contained in:
Norman Jäckel 2017-03-16 14:14:01 +01:00 committed by GitHub
commit a33f0dd668
4 changed files with 14 additions and 5 deletions

View File

@ -232,7 +232,9 @@
<span ng-if="poll.pollmethod == 'yna' || poll.pollmethod == 'yn'">{{ vote.label }}:</span>
{{ vote.value }} {{ vote.percentStr }}
<div ng-if="vote.percentNumber >= 0">
<uib-progressbar value="vote.percentNumber" type="success"></uib-progressbar>
<uib-progressbar ng-if="$index == 0" value="vote.percentNumber" type="success"></uib-progressbar>
<uib-progressbar ng-if="$index == 1" value="vote.percentNumber" type="danger"></uib-progressbar>
<uib-progressbar ng-if="$index == 2" value="vote.percentNumber" type="warning"></uib-progressbar>
</div>
</div>
</div>

View File

@ -545,7 +545,6 @@ img {
border-radius: 0.25em;
top: 4px;
left: 43px;
cursor: pointer;
font-family: FontAwesome;
font-size: 12px;
color: white;

View File

@ -495,14 +495,22 @@ angular.module('OpenSlidesApp.motions.pdf', ['OpenSlidesApp.core.pdf'])
// function to create the table of catergories (if any)
var createTOCategories = function() {
if (Category.getAll().length > 1) {
var categories = [];
_.forEach(allMotions, function(motion) {
var category = motion.getCategory();
if (category) {
categories.push(category);
}
});
categories = _.uniqBy(categories, 'id');
if (categories.length > 1) {
var heading = {
text: gettextCatalog.getString("Categories"),
style: "heading2"
};
var toc = [];
angular.forEach(Category.filter({orderBy: 'prefix'}) , function(cat) {
angular.forEach(_.orderBy(categories, ['prefix']), function(cat) {
toc.push(
{
columns: [

View File

@ -4,7 +4,7 @@
<translate>Summary of change recommendations</translate>:
</strong>
<button class="btn btn-sm btn-default pull-right"
<button os-perms="motions.can_manage" class="btn btn-sm btn-default pull-right"
uib-tooltip="{{ 'Note: You have to reject all change recommendations if the plenum does not follow the recommendation.' | translate }}"
ng-click="viewChangeRecommendations.rejectAll(motion)">
<i class="fa fa-thumbs-down"></i>