summaryrefslogtreecommitdiffstats
path: root/ogcp/templates/actions/cache.html
Commit message (Collapse)AuthorAgeFilesLines
* templates: fix ip card list spacingAlejandro Sirgo Rica2024-09-031-3/+1
| | | | | Remove unwanted witespace caused by tabs and spaces. Add margin to the ip card style to define an explicit spacing.
* ogcp: show cache contents in client detailsAlejandro Sirgo Rica2024-07-161-145/+2
| | | | | | Show cache contents in client details for a more complete view of the client's state. Move the cache inspector code to its own template for reusability.
* ogcp: add checksum to images in Manage cacheAlejandro Sirgo Rica2024-07-121-0/+1
| | | | | Ease detection of potential problems with images in cache. Show checksum under each image in the form.
* templates: improve client list in cache and boot os viewsAlejandro Sirgo Rica2024-06-281-1/+5
| | | | Show client IPs inside div components with a custom "card" styling.
* templates: add vertical padding to the no cache messageAlejandro Sirgo Rica2024-06-281-1/+1
| | | | | Add vertical padding to the div holding the report of no selected client with cached images.
* templates: hide detailed cache view with zero imagesAlejandro Sirgo Rica2024-06-281-5/+6
| | | | | | Hide the cache inspector when no cache elements are found in neither of the selected clients. Fix js exception caused by an array access in an empty image list.
* templates: fix no image message in manage cache viewAlejandro Sirgo Rica2024-06-281-1/+1
| | | | | The template conditional must show the table when form.images has more than zero elements.
* ogcp: improve page heading styleAlejandro Sirgo Rica2024-06-271-2/+2
| | | | Make headings take less space and have a dashed line under them.
* templates: show image file table only if clients have a cacheAlejandro Sirgo Rica2024-06-071-0/+6
| | | | | Hide form table when the client's cache is empty and inform the user about the selected clients not having images in cache.
* ogcp: add cache management pageAlejandro Sirgo Rica2024-05-301-0/+192
Implement cache management through cache/list and cache/delete API REST methods. The view corresponds to the URL action/cache and contains three main parts: - Free cache available in the client's bubbles. - Image selection form to request the deletion and view the client with that image in cache. - Cache details per client to see total, used and available cache. The main usecase for the view is the removal of cache to make room for new images in clients with slow connections. Checking clients where available cache space is not enough to hold the new image and then requesting removal of specific images. The html template receives the following structures from the view: storage_data[ip] = {'used': 223452345, 'total': 2345234523452} client_images[ip] = [f'{image_name}.{image_checksum}', ...] image_data[f'{image_name}.{image_checksum}'] = { clients: ['192.168.0.1', ...], size: 34534530850, name: image_name, }