File tree 3 files changed +15
-0
lines changed
contrib/storage-http/src/main/resources/storage_logos
java/org/apache/drill/exec/server/rest
3 files changed +15
-0
lines changed File renamed without changes.
Original file line number Diff line number Diff line change @@ -490,6 +490,20 @@ public String getPassword() {
490
490
}
491
491
}
492
492
493
+ /**
494
+ * Returns the path for the image used in the list view.
495
+ * @return
496
+ */
497
+ public String getImagePath () {
498
+ if (getCleanType ().contentEquals ("FileSystem" )) {
499
+ return "/static/img/storage_logos/FileSystem.png" ;
500
+ }
501
+
502
+ // If the plugin is in contrib, get the full path
503
+ String path = plugin .getConfig ().getClass ().getResource ("/storage_logos/" + getCleanType () + ".png" ).getPath ();
504
+ return path ;
505
+ }
506
+
493
507
public String getCleanType () {
494
508
String pluginName = type .replace ("Config" , "" );
495
509
pluginName = pluginName .replace ("Plugin" , "" );
Original file line number Diff line number Diff line change 61
61
<tr >
62
62
<td style =" border :none ;" >
63
63
<img src =" /static/img/storage_logos/${pluginModel.getCleanType()}.png" alt =" ${pluginModel.getCleanType()}" height =40 width =40 />
64
+ ${pluginModel.getImagePath()}
64
65
</td >
65
66
<td style =" border :none ; max-width : 200px ; overflow : hidden ; text-overflow : ellipsis ;" >
66
67
${pluginModel.getPlugin().getName()}
You can’t perform that action at this time.
0 commit comments