Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.

Commit

Permalink
[#762] cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Pozzi committed Mar 28, 2022
1 parent 5318e87 commit 1ee35ad
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
*/
public class ReportGenerator extends HtmlGenerator {

public static final String CLASS = "class";

public ReportGenerator(LocalServer localServer, IconService iconService) {
super(localServer, iconService);
}
Expand All @@ -44,7 +46,7 @@ private String writeLandscape(final Landscape landscape, final Assessment assess
iff(hasLength(landscape.getContact()), p("Contact: " + nice(landscape.getContact()))),
div(embed()
.attr("src", MapController.PATH + "/" + landscape.getIdentifier() + "/" + MAP_SVG_ENDPOINT)
.attr("class", "img-fluid img-thumbnail mx-auto d-block")),
.attr(CLASS, "img-fluid img-thumbnail mx-auto d-block")),
br(), br(),
rawHtml(writeGroups(landscape, assessment))
)
Expand All @@ -60,10 +62,10 @@ private String writeGroups(Landscape landscape, Assessment assessment) {
String color = "#" + group.getColor();
builder.append(
h2(rawHtml("Group: " + "<span style=\"color: " + color + "\">" + GROUP_CIRCLE + "</span> " + group.getIdentifier()))
.attr("class", "rounded").render()
.attr(CLASS, "rounded").render()
);
builder.append(
div().attr("class", "group")
div().attr(CLASS, "group")
.with(group.getChildren().stream().map(item -> this.writeItem(item, assessment, all)))
.render()
);
Expand Down

0 comments on commit 1ee35ad

Please sign in to comment.