mirror of
https://github.com/GNS3/gns3-registry.git
synced 2025-01-31 08:25:39 +00:00
Display only the selected file when importing a file
This commit is contained in:
parent
29b82614a0
commit
7fbbe4cbc4
5
build.py
5
build.py
@ -67,6 +67,9 @@ for file in os.listdir('devices'):
|
|||||||
|
|
||||||
for image_type in device['images']:
|
for image_type in device['images']:
|
||||||
for image in device['images'][image_type]:
|
for image in device['images'][image_type]:
|
||||||
render('device.html', os.path.join('images', image['md5sum'] + '.html'), device=device)
|
# We keep only this image in the page
|
||||||
|
image_device = device
|
||||||
|
image_device['images'][image_type] = [ image ]
|
||||||
|
render('device.html', os.path.join('images', image['md5sum'] + '.html'), device=image_device)
|
||||||
|
|
||||||
render('devices.html', os.path.join('devices', 'index.html'), devices=devices)
|
render('devices.html', os.path.join('devices', 'index.html'), devices=devices)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user