Adding sortingoptions for creationdate and last modified (closes #2448)

This commit is contained in:
FinnStutzenstein 2016-10-17 12:41:51 +02:00
parent f8be521bf5
commit fc21713bb4
2 changed files with 22 additions and 2 deletions

View File

@ -909,10 +909,8 @@ angular.module('OpenSlidesApp.motions.site', [
ngDialog.open(MotionForm.getDialog(motion)); ngDialog.open(MotionForm.getDialog(motion));
}; };
// Export as a pdf file // Export as a pdf file
$scope.pdf_export = function() { $scope.pdf_export = function() {
var filename = gettextCatalog.getString("Motions") + ".pdf"; var filename = gettextCatalog.getString("Motions") + ".pdf";
var image_sources = []; var image_sources = [];

View File

@ -273,6 +273,28 @@
</i> </i>
</div> </div>
</li> </li>
<li>
<!-- creation date -->
<div class="pointer dropdown-entry" ng-click="toggleSort('log_messages[log_messages.length-1].time')">
<translate>Creation date</translate>
<span class="spacer-right pull-right"></span>
<i class="pull-right fa"
ng-style="{'visibility': sortColumn === 'log_messages[log_messages.length-1].time' && header.sortable != false ? 'visible' : 'hidden'}"
ng-class="reverse ? 'fa-sort-desc' : 'fa-sort-asc'">
</i>
</div>
</li>
<li>
<!-- last modified -->
<div class="pointer dropdown-entry" ng-click="toggleSort('log_messages[0].time')">
<translate>Last modified</translate>
<span class="spacer-right pull-right"></span>
<i class="pull-right fa"
ng-style="{'visibility': sortColumn === 'log_messages[0].time' && header.sortable != false ? 'visible' : 'hidden'}"
ng-class="reverse ? 'fa-sort-asc' : 'fa-sort-desc'">
</i>
</div>
</li>
</ul> </ul>
</span> </span>
<!-- search field --> <!-- search field -->