Skip to content

Commit

Permalink
Added hypelink on the file name opening the monaco diff by default
Browse files Browse the repository at this point in the history
Issue #702
  • Loading branch information
tsantalis committed Apr 26, 2024
1 parent fca0140 commit 3266b78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/gui/webdiff/DirectoryDiffView.java
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ private void renderNode(HtmlCanvas ul, DefaultMutableTreeNode node) throws IOExc
}
ul.tr()
//.td().content(nodeInfo.getName())
.td().img(src(iconPath).width(iconWidth).height(iconHeight)).write(" " + nodeInfo.getName())._td()
.td().a(href("/monaco-diff/" + nodeInfo.getId())).img(src(iconPath).width(iconWidth).height(iconHeight)).write(" " + nodeInfo.getName())._a()._td()
.td()
.div(class_("btn-toolbar justify-content-end"))
.div(class_("btn-group"))
Expand Down

0 comments on commit 3266b78

Please sign in to comment.