Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/20/15 16:29:08 (9 years ago)
Author:
dglaser
Message:

#2388:

HeuristicLab.Services.WebApp.Status-3.3:
HeuristicLab.Services.WebApp.Statistics-3.3:

  • Added 'Last 6 Months' and 'Last Year' to the QuickSelection

HeuristicLab.Services.WebApp.Statistics-3.3:

  • Added Group Name to expired clients
Location:
branches/HiveStatistics/sources/HeuristicLab.Services.WebApp.Status/3.3/WebApp/history
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HiveStatistics/sources/HeuristicLab.Services.WebApp.Status/3.3/WebApp/history/history.cshtml

    r12768 r12780  
    3232        <div class="form-group" style="margin-left: 5px; margin-right: 5px;">
    3333            <div class="btn-group" dropdown dropdown-append-to-body>
    34                 <button type="button" class="btn btn-default dropdown-toggle" dropdown-toggle style="width: 130px; text-align: left;">
    35                     <span class="text-left" style="display: inline-block; width: 85px;">{{curQuickSelection.name}}</span>
     34                <button type="button" class="btn btn-default dropdown-toggle" dropdown-toggle style="width: 145px; text-align: left;">
     35                    <span class="text-left" style="display: inline-block; width: 100px;">{{curQuickSelection.name}}</span>
    3636                    <span class="glyphicon glyphicon-chevron-down" style="margin-top: 3px;"></span>
    3737                </button>
  • branches/HiveStatistics/sources/HeuristicLab.Services.WebApp.Status/3.3/WebApp/history/historyCtrl.js

    r12584 r12780  
    5151                { id: 2, name: 'Yesterday' },
    5252                { id: 3, name: 'Last 7 Days' },
    53                 { id: 4, name: 'Last 30 Days' }
     53                { id: 4, name: 'Last 30 Days' },
     54                { id: 5, name: 'Last 6 Months' },
     55                { id: 6, name: 'Last Year' }
    5456            ];
    5557            $scope.changeQuickSelection = function (quickSelection) {
     
    7173                    case 4:
    7274                        $scope.fromDate = new Date(today.valueOf() - (30 * oneDayInMs));
     75                        $scope.toDate = new Date(today.valueOf());
     76                        break;
     77                    case 5:
     78                        var month = today.getMonth() - 6;
     79                        if (month < 0) {
     80                            month += 12;
     81                        }
     82                        $scope.fromDate = new Date(today.valueOf());
     83                        $scope.fromDate.setMonth(month);
     84                        $scope.toDate = new Date(today.valueOf());
     85                        break;
     86                    case 6:
     87                        $scope.fromDate = new Date(today.valueOf());
     88                        $scope.fromDate.setFullYear(today.getFullYear()-1);
    7389                        $scope.toDate = new Date(today.valueOf());
    7490                        break;
Note: See TracChangeset for help on using the changeset viewer.