@@ -82,32 +82,39 @@ public CatalogEntryWebPart(ExperimentAnnotations expAnnotations, User user, @Nul
8282
8383 CatalogEntrySettings settings = CatalogEntryManager .getCatalogEntrySettings ();
8484 addView (new HtmlView (
85- DIV (
86- TABLE (
87- TR (
88- TD (at (style , "padding:0 10px 15px 0; vertical-align:top;" ), U ("Status:" )),
89- TD (at (style , "vertical-align:top;" ),
90- CatalogEntry .getStatusText (entry .getApproved ()),
91- changeStatusBtn == null ? "" : changeStatusBtn )
85+ DIV (
86+ TABLE (
87+ TR (
88+ TD (
89+ at (style , "padding:0 10px 15px 0; vertical-align:top;" ),
90+ U ("Status:" )
9291 ),
93- TR (
94- TD (at (style , "padding:0 10px 15px 0; vertical-align:top;" ), U ("Title:" )),
95- TD (at (style , "vertical-align:top;" ), expAnnotations .getTitle ())
96- ),
97- TR (
98- TD (at (style , "padding:0 10px 15px 0; vertical-align:top;" ), U ("Description:" )),
99- TD (at (style , "vertical-align:top;" ), entry .getDescription ())
92+ TD (
93+ at (style , "vertical-align:top;" ),
94+ CatalogEntry .getStatusText (entry .getApproved ()),
95+ changeStatusBtn == null ? "" : changeStatusBtn
10096 )
10197 ),
102- DIV (IMG (at (src , PanoramaPublicController .getCatalogImageDownloadUrl (expAnnotations , entry .getImageFileName ()))
103- .at (width , settings .getImgWidth ()).at (height , settings .getImgHeight ())
104- .at (style , "margin:10px 0 15px 0;border: 1px solid lightgrey;" ))),
105- new ButtonBuilder ("Edit" ).href (editUrl ),
106- HtmlString .NBSP ,
107- new ButtonBuilder ("Delete" ).href (deleteUrl )
108- .usePost ("Are you sure you want to delete the Panorama Public catalog entry for this experiment?" ),
109- returnUrl != null ? DIV (at (style , "margin-top:25px;" ), new ButtonBuilder ("Back" ).href (returnUrl ))
110- : HtmlString .EMPTY_STRING
98+ TR (
99+ TD (at (style , "padding:0 10px 15px 0; vertical-align:top;" ), U ("Title:" )),
100+ TD (at (style , "vertical-align:top;" ), expAnnotations .getTitle ())
101+ ),
102+ TR (
103+ TD (at (style , "padding:0 10px 15px 0; vertical-align:top;" ), U ("Description:" )),
104+ TD (at (style , "vertical-align:top;" ), entry .getDescription ())
105+ )
106+ ),
107+ DIV (IMG (
108+ at (src , PanoramaPublicController .getCatalogImageDownloadUrl (expAnnotations , entry .getImageFileName ()))
109+ .at (width , settings .getImgWidth ()).at (height , settings .getImgHeight ())
110+ .at (style , "margin:10px 0 15px 0;border: 1px solid lightgrey;" )
111+ )),
112+ new ButtonBuilder ("Edit" ).href (editUrl ),
113+ HtmlString .NBSP ,
114+ new ButtonBuilder ("Delete" ).href (deleteUrl )
115+ .usePost ("Are you sure you want to delete the Panorama Public catalog entry for this experiment?" ),
116+ returnUrl != null ? DIV (at (style , "margin-top:25px;" ), new ButtonBuilder ("Back" ).href (returnUrl ))
117+ : HtmlString .EMPTY_STRING
111118 )));
112119 }
113120 }
0 commit comments