mirror of
				https://github.com/ClusterCockpit/cc-backend
				synced 2025-11-04 01:25:06 +01:00 
			
		
		
		
	Add TotalAccHours to project and user lists
This commit is contained in:
		@@ -45,6 +45,7 @@
 | 
				
			|||||||
                totalJobs
 | 
					                totalJobs
 | 
				
			||||||
                totalWalltime
 | 
					                totalWalltime
 | 
				
			||||||
                totalCoreHours
 | 
					                totalCoreHours
 | 
				
			||||||
 | 
					                totalAccHours
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }`,
 | 
					        }`,
 | 
				
			||||||
        variables: { jobFilters }
 | 
					        variables: { jobFilters }
 | 
				
			||||||
@@ -166,6 +167,18 @@
 | 
				
			|||||||
                    <Icon name="sort-numeric-down" />
 | 
					                    <Icon name="sort-numeric-down" />
 | 
				
			||||||
                </Button>
 | 
					                </Button>
 | 
				
			||||||
            </th>
 | 
					            </th>
 | 
				
			||||||
 | 
					            <th scope="col">
 | 
				
			||||||
 | 
					                Total Accelerator Hours
 | 
				
			||||||
 | 
					                <Button
 | 
				
			||||||
 | 
					                    color={sorting.field == "totalAccHours"
 | 
				
			||||||
 | 
					                        ? "primary"
 | 
				
			||||||
 | 
					                        : "light"}
 | 
				
			||||||
 | 
					                    size="sm"
 | 
				
			||||||
 | 
					                    on:click={(e) => changeSorting(e, "totalAccHours")}
 | 
				
			||||||
 | 
					                >
 | 
				
			||||||
 | 
					                    <Icon name="sort-numeric-down" />
 | 
				
			||||||
 | 
					                </Button>
 | 
				
			||||||
 | 
					            </th>
 | 
				
			||||||
        </tr>
 | 
					        </tr>
 | 
				
			||||||
    </thead>
 | 
					    </thead>
 | 
				
			||||||
    <tbody>
 | 
					    <tbody>
 | 
				
			||||||
@@ -205,6 +218,7 @@
 | 
				
			|||||||
                    <td>{row.totalJobs}</td>
 | 
					                    <td>{row.totalJobs}</td>
 | 
				
			||||||
                    <td>{row.totalWalltime}</td>
 | 
					                    <td>{row.totalWalltime}</td>
 | 
				
			||||||
                    <td>{row.totalCoreHours}</td>
 | 
					                    <td>{row.totalCoreHours}</td>
 | 
				
			||||||
 | 
					                    <td>{row.totalAccHours}</td>
 | 
				
			||||||
                </tr>
 | 
					                </tr>
 | 
				
			||||||
            {:else}
 | 
					            {:else}
 | 
				
			||||||
                <tr>
 | 
					                <tr>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user