Free cookie consent management tool by TermsFeed Policy Generator

Changeset 14820 for trunk


Ignore:
Timestamp:
04/04/17 13:54:40 (7 years ago)
Author:
jkarder
Message:

#2743: worked on web app

  • added sorting functionality to some tables
Location:
trunk/sources/HeuristicLab.Services.WebApp.Statistics/3.3
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Services.WebApp.Statistics/3.3/WebApp/clients/clients.cshtml

    r12780 r14820  
    3333                </div>
    3434                <div class="panel-body">
    35                     <table class="table table-hover table-condensed">
     35                    <table class="table table-hover table-condensed" ts-wrapper>
    3636                        <thead>
    3737                        <tr>
    3838                            <th>#</th>
    39                             <th>Client Name</th>
    40                             <th>Group Name</th>
    41                             <th>Cores</th>
    42                             <th>Cpu Utilization</th>
    43                             <th>Memory</th>
    44                             <th>State</th>
     39                            <th ts-criteria="Name">Client Name</th>
     40                            <th ts-criteria="GroupName">Group Name</th>
     41                            <th ts-criteria="UsedCores">Cores</th>
     42                            <th ts-criteria="CpuUtilization">Cpu Utilization</th>
     43                            <th ts-criteria="UsedMemory">Memory</th>
     44                            <th ts-criteria="State">State</th>
    4545                            <th></th>
    4646                        </tr>
    4747                        </thead>
    48                         <tr ng-repeat="client in clientPage.Clients">
     48                        <tr ng-repeat="client in clientPage.Clients" ts-repeat>
    4949                            <td>{{($index + 1)+((curClientsPage-1)*(clientsPageSize))}}</td>
    5050                            <td>{{client.Name}}</td>
     
    8181                </div>
    8282                <div class="panel-body">
    83                     <table class="table table-hover table-condensed">
     83                    <table class="table table-hover table-condensed" ts-wrapper>
    8484                        <thead>
    8585                            <tr>
    8686                                <th>#</th>
    87                                 <th>Client Name</th>
    88                                 <th>Group Name</th>
    89                                 <th>Cores</th>
    90                                 <th>Cpu Utilization</th>
    91                                 <th>Memory</th>
    92                                 <th>State</th>
     87                                <th ts-criteria="Name">Client Name</th>
     88                                <th ts-criteria="GroupName">Group Name</th>
     89                                <th ts-criteria="UsedCores">Cores</th>
     90                                <th ts-criteria="CpuUtilization">Cpu Utilization</th>
     91                                <th ts-criteria="UsedMemory">Memory</th>
     92                                <th ts-criteria="State">State</th>
    9393                                <th></th>
    9494                            </tr>
    9595                        </thead>
    96                         <tr ng-repeat="client in expiredClientPage.Clients">
     96                        <tr ng-repeat="client in expiredClientPage.Clients" ts-repeat>
    9797                            <td>{{($index + 1)+((curExpiredClientsPage-1)*(expiredClientsPageSize))}}</td>
    9898                            <td>{{client.Name}}</td>
  • trunk/sources/HeuristicLab.Services.WebApp.Statistics/3.3/WebApp/exceptions/exceptions.cshtml

    r12778 r14820  
    3030                </div>
    3131                <div class="panel-body">
    32                     <table class="table table-hover table-condensed">
     32                    <table class="table table-hover table-condensed" ts-wrapper>
    3333                        <thead>
    3434                        <tr>
    3535                            <th>#</th>
    36                             <th>Job</th>
    37                             <th>Task</th>
    38                             <th>Username</th>
    39                             <th>Client</th>
    40                             <th>Date</th>
     36                            <th ts-criteria="JobName">Job</th>
     37                            <th ts-criteria="TaskId">Task</th>
     38                            <th ts-criteria="UserName">Username</th>
     39                            <th ts-criteria="ClientName">Client</th>
     40                            <th ts-criteria="Date">Date</th>
    4141                            <th></th>
    4242                        </tr>
    4343                        </thead>
    44                         <tr ng-repeat="exception in exceptionPage.Exceptions">
     44                        <tr ng-repeat="exception in exceptionPage.Exceptions" ts-repeat>
    4545                            <td>{{($index + 1)+((curExceptionsPage-1)*(exceptionsPageSize))}}</td>
    4646                            <td><a ng-href="#/statistics/jobs/{{exception.JobId}}">{{exception.JobName}}</a></td>
  • trunk/sources/HeuristicLab.Services.WebApp.Statistics/3.3/WebApp/groups/groups.cshtml

    r12551 r14820  
    3333                </div>
    3434                <div class="panel-body">
    35                     <table class="table table-hover table-condensed">
     35                    <table class="table table-hover table-condensed" ts-wrapper>
    3636                        <thead>
    3737                        <tr>
    3838                            <th>#</th>
    39                             <th>Group Name</th>
    40                             <th>Cores</th>
    41                             <th>Cpu Utilization</th>
    42                             <th>Memory</th>
    43                             <th>Clients</th>
     39                            <th ts-criteria="Name">Group Name</th>
     40                            <th ts-criteria="UsedCores">Cores</th>
     41                            <th ts-criteria="CpuUtilization">Cpu Utilization</th>
     42                            <th ts-criteria="UsedMemory">Memory</th>
     43                            <th ts-criteria="OnlineClients">Clients</th>
    4444                            <th></th>
    4545                        </tr>
    4646                        </thead>
    47                         <tr ng-repeat="group in groupPage.Groups">
     47                        <tr ng-repeat="group in groupPage.Groups" ts-repeat>
    4848                            <td>{{($index + 1)+((curGroupsPage-1)*(groupsPageSize))}}</td>
    4949                            <td>{{group.Name}}</td>
  • trunk/sources/HeuristicLab.Services.WebApp.Statistics/3.3/WebApp/jobs/jobs.cshtml

    r12778 r14820  
    3333                </div>
    3434                <div class="panel-body">
    35                     <table class="table table-hover table-condensed">
     35                    <table class="table table-hover table-condensed" ts-wrapper>
    3636                        <thead>
    3737                        <tr>
    3838                            <th>#</th>
    39                             <th>Job Name</th>
     39                            <th ts-criteria="Name">Job Name</th>
    4040                            @if (Request.IsAuthenticated && User.IsInRole(HiveRoles.Administrator)) {
    41                                 <th>Username</th>
     41                                <th ts-criteria="UserName">Username</th>
    4242                            }
    43                             <th>Date Created</th>
     43                            <th ts-criteria="DateCreated">Date Created</th>
    4444                            <th>Progress</th>
    4545                            <th></th>
     
    4747                        </thead>
    4848                        @if (Request.IsAuthenticated && User.IsInRole(HiveRoles.Administrator)) {
    49                             <tr ng-repeat="job in allUsersJobs">
     49                            <tr ng-repeat="job in allUsersJobs" ts-repeat>
    5050                                <td>{{$index + 1}}</td>
    5151                                <td>{{job.Name}}</td>
     
    9393                </div>
    9494                <div class="panel-body">
    95                     <table class="table table-hover table-condensed">
     95                    <table class="table table-hover table-condensed" ts-wrapper>
    9696                        <thead>
    9797                        <tr>
    9898                            <th>#</th>
    99                             <th>Job Name</th>
    100                             <th>Date Created</th>
    101                             <th>Date Completed</th>
    102                             <th>Tasks</th>
     99                            <th ts-criteria="Name">Job Name</th>
     100                            <th ts-criteria="DateCreated">Date Created</th>
     101                            <th ts-criteria="DateCompleted">Date Completed</th>
     102                            <th ts-criteria="TotalTasks|parseInt">Tasks</th>
    103103                            <th></th>
    104104                        </tr>
    105105                        </thead>
    106                         <tr ng-repeat="job in completedJobPage.Jobs">
     106                        <tr ng-repeat="job in completedJobPage.Jobs" ts-repeat>
    107107                            <td>{{($index + 1)+((completedJobCurPage-1)*(completedJobPageSize))}}</td>
    108108                            <td>{{job.Name}}</td>
  • trunk/sources/HeuristicLab.Services.WebApp.Statistics/3.3/WebApp/users/users.cshtml

    r12584 r14820  
    3030                </div>
    3131                <div class="panel-body">
    32                     <table class="table table-hover table-condensed">
     32                    <table class="table table-hover table-condensed" ts-wrapper>
    3333                        <thead>
    3434                            <tr>
    3535                                <th>#</th>
    36                                 <th>Username</th>
     36                                <th ts-criteria="Name">Username</th>
    3737                                <th></th>
    3838                            </tr>
    3939                        </thead>
    40                         <tr ng-repeat="user in users">
     40                        <tr ng-repeat="user in users" ts-repeat>
    4141                            <td>{{$index + 1}}</td>
    4242                            <td>{{user.Name}}</td>
  • trunk/sources/HeuristicLab.Services.WebApp.Statistics/3.3/statistics.js

    r12560 r14820  
    22(function () {
    33    var plugin = appStatisticsPlugin;
    4     plugin.dependencies = ['ngResource', 'ui.knob', 'ui.bootstrap', 'ngFitText'];
     4    plugin.dependencies = ['ngResource', 'ui.knob', 'ui.bootstrap', 'ngFitText', 'tableSort'];
    55    plugin.files = [
    66        'WebApp/statistics.css',
Note: See TracChangeset for help on using the changeset viewer.