StatCan/jupyter-apis

Display attached notebooks in volume details overview page.

mathis-marcotte opened this issue · 2 comments

In the dashboard, we display the "Used by" column in the volumes table that displays which notebook uses that volume.

image

Also, in the notebook details page, we display the list of attached volumes.

image

But, we don't display anything like that in the Volumes details page. For a better navigation between resources when looking at the details page, we should add that "used by" column to the details page to also link back to notebooks from there.

If the notebook associated with the volume is running, then this section will be displayed
image

So there is something in place to link back to the associated notebook. But this is information that we can display at all times, not just when a pod is mounted.

This is how it looks
image

It might look a bit busy when there is also a pod mounted, since there will be two links to the same place. Maybe we could either remove the "Pods mounted" section or only display the new section when there ISN'T a pod mounted.

But it looks fine when there isn't a mounted pod.
image

And the new section is hidden when there isn't an attached notebook.