Use origin field in motion detail and list view (Fixes #2227)
This commit is contained in:
parent
45321b6139
commit
af16733b36
@ -446,6 +446,7 @@ angular.module('OpenSlidesApp.motions.site', ['OpenSlidesApp.motions'])
|
||||
motion.getTitle(),
|
||||
motion.getText(),
|
||||
motion.getReason(),
|
||||
motion.origin,
|
||||
_.map(
|
||||
motion.submitters,
|
||||
function (submitter) {
|
||||
|
@ -112,6 +112,10 @@
|
||||
<div class="label" ng-class="'label-'+motion.state.css_class">
|
||||
{{ motion.state.name | translate }}
|
||||
</div>
|
||||
|
||||
<!-- Origin -->
|
||||
<h3 ng-if="motion.origin" translate>Origin</h3>
|
||||
{{ motion.origin }}
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<h3 ng-if="motion.polls.length > 0" translate>Voting result</h3>
|
||||
|
@ -165,6 +165,12 @@
|
||||
<span ng-repeat="tag in motion.tags" class="label label-default">
|
||||
{{ tag.name }}
|
||||
</span>
|
||||
<div ng-if="motion.origin">
|
||||
<small>
|
||||
<i class="fa fa-info-circle"></i> <translate>Origin</translate>:
|
||||
{{ motion.origin | limitTo:30 }}{{ motion.origin.length > 30 ? '...' : '' }}
|
||||
</small>
|
||||
</div>
|
||||
<div ng-if="motion.isAllowed('update')" class="hoverActions" ng-class="{'hiddenDiv': !motion.hover}">
|
||||
<span ng-if="motion.isAllowed('update')">
|
||||
<a href="" ng-click="openDialog(motion)" translate>Edit</a>
|
||||
|
Loading…
Reference in New Issue
Block a user