@@ -137,7 +137,8 @@ public ModelAndView newWorkflowFromGithubURL(@Valid WorkflowForm workflowForm, B
137
137
* @return The workflow view with the workflow as a model
138
138
*/
139
139
@ RequestMapping (value ="/workflows/github.com/{owner}/{repoName}/tree/{branch}/**" )
140
- public ModelAndView getWorkflowByGithubDetails (@ PathVariable ("owner" ) String owner ,
140
+ public ModelAndView getWorkflowByGithubDetails (@ Value ("${applicationURL}" ) String applicationURL ,
141
+ @ PathVariable ("owner" ) String owner ,
141
142
@ PathVariable ("repoName" ) String repoName ,
142
143
@ PathVariable ("branch" ) String branch ,
143
144
HttpServletRequest request ) {
@@ -181,7 +182,7 @@ public ModelAndView getWorkflowByGithubDetails(@PathVariable("owner") String own
181
182
}
182
183
183
184
// Display this model along with the view
184
- return new ModelAndView ("workflow" , "workflow" , workflowModel );
185
+ return new ModelAndView ("workflow" , "workflow" , workflowModel ). addObject ( "appURL" , applicationURL ) ;
185
186
186
187
}
187
188
@@ -239,7 +240,8 @@ public FileSystemResource getGraphAsSvg(@Value("${graphvizStorage}") String grap
239
240
gv .decreaseDpi ();
240
241
gv .decreaseDpi ();
241
242
gv .decreaseDpi ();
242
- gv .writeGraphToFile (gv .getGraph (workflowModel .getDotGraph (), "svg" , "dot" ), out .getAbsolutePath ());
243
+ gv .writeGraphToFile (gv .getGraph (workflowModel .getDotGraph ()
244
+ .replace ("bgcolor = \" #eeeeee\" " , "bgcolor = \" transparent\" " ), "svg" , "dot" ), out .getAbsolutePath ());
243
245
}
244
246
245
247
// Output the graph image
0 commit comments