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.Statistics/3.3/WebApp/groups/details
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HiveStatistics/sources/HeuristicLab.Services.WebApp.Statistics/3.3/WebApp/groups/details/groupDetails.cshtml

    r12778 r12780  
    232232         <div class="form-group" style="margin-left: 5px; margin-right: 5px;">
    233233             <div class="btn-group" dropdown dropdown-append-to-body>
    234                  <button type="button" class="btn btn-default dropdown-toggle" dropdown-toggle style="width: 130px; text-align: left;">
    235                      <span class="text-left" style="display: inline-block; width: 85px;">{{curQuickSelection.name}}</span>
     234                 <button type="button" class="btn btn-default dropdown-toggle" dropdown-toggle style="width: 145px; text-align: left;">
     235                     <span class="text-left" style="display: inline-block; width: 100px;">{{curQuickSelection.name}}</span>
    236236                     <span class="glyphicon glyphicon-chevron-down" style="margin-top: 3px;"></span>
    237237                 </button>
  • branches/HiveStatistics/sources/HeuristicLab.Services.WebApp.Statistics/3.3/WebApp/groups/details/groupDetailsCtrl.js

    r12778 r12780  
    109109                { id: 2, name: 'Yesterday' },
    110110                { id: 3, name: 'Last 7 Days' },
    111                 { id: 4, name: 'Last 30 Days' }
     111                { id: 4, name: 'Last 30 Days' },
     112                { id: 5, name: 'Last 6 Months' },
     113                { id: 6, name: 'Last Year' }
    112114            ];
    113115            $scope.changeQuickSelection = function (quickSelection) {
     
    129131                    case 4:
    130132                        $scope.fromDate = new Date(today.valueOf() - (30 * oneDayInMs));
     133                        $scope.toDate = new Date(today.valueOf());
     134                        break;
     135                    case 5:
     136                        var month = today.getMonth() - 6;
     137                        if (month < 0) {
     138                            month += 12;
     139                        }
     140                        $scope.fromDate = new Date(today.valueOf());
     141                        $scope.fromDate.setMonth(month);
     142                        $scope.toDate = new Date(today.valueOf());
     143                        break;
     144                    case 6:
     145                        $scope.fromDate = new Date(today.valueOf());
     146                        $scope.fromDate.setFullYear(today.getFullYear() - 1);
    131147                        $scope.toDate = new Date(today.valueOf());
    132148                        break;
Note: See TracChangeset for help on using the changeset viewer.