diff --git a/src/omero/gateway/__init__.py b/src/omero/gateway/__init__.py
index 42b6d956c..cfd495c2d 100644
--- a/src/omero/gateway/__init__.py
+++ b/src/omero/gateway/__init__.py
@@ -10451,18 +10451,21 @@ def _repr_html_(self):
"""
+ def obj_html(obj, otype):
+ return f"""
+ {otype} |
+ {obj.id if obj else ""} |
+ {obj.name if obj else ""} |
+
+ """
+
# create a sub-table for image information
table_imageinfo = f"""
- \n
- \n
- Image name: | {self.getName()} | \n
-
\n
- \n
- Image ID: | {self.getId()} | \n
-
\n
- \n
- Project ID: | {self.getProject().getId()} | \n
-
\n
+
+ | ID | Name |
+ {obj_html(self, 'Image')}
+ {obj_html(self.getParent(), 'Dataset')}
+ {obj_html(self.getProject(), 'Project')}
"""