Skip to content

Commit 652270a

Browse files
committed
All icons
1 parent bd12e60 commit 652270a

File tree

16 files changed

+9
-2
lines changed

16 files changed

+9
-2
lines changed

exec/java-exec/src/main/java/org/apache/drill/exec/server/rest/StorageResources.java

+7
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,13 @@ public StoragePluginModel(PluginConfigWrapper plugin, HttpServletRequest request
573573
csrfToken = WebUtils.getCsrfTokenFromHttpRequest(request);
574574
}
575575

576+
public String getCleanType() {
577+
String pluginName = type.replace("Config", "");
578+
pluginName = pluginName.replace("Plugin", "");
579+
pluginName = pluginName.replace("Storage", "");
580+
return pluginName;
581+
}
582+
576583
public String getType() {
577584
return type;
578585
}
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading

exec/java-exec/src/main/resources/rest/storage/list.ftl

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
<#if pluginModel.getPlugin()?? && pluginModel.getPlugin().enabled() == true>
6161
<tr>
6262
<td style="border:none;">
63-
<img src="/static/img/storage_logos/${pluginModel.getType()}.png" height=50 width=50 />
63+
<img src="/static/img/storage_logos/${pluginModel.getCleanType()}.png" alt="${pluginModel.getCleanType()}" height=40 width=40 />
6464
</td>
6565
<td style="border:none; max-width: 200px; overflow: hidden; text-overflow: ellipsis;">
6666
${pluginModel.getPlugin().getName()}
@@ -92,7 +92,7 @@
9292
<#if pluginModel.getPlugin()?? && pluginModel.getPlugin().enabled() == false>
9393
<tr>
9494
<td style="border:none;">
95-
<img src="/static/img/storage_logos/${pluginModel.getType()}.png" height=50 width=50 />
95+
<img src="/static/img/storage_logos/${pluginModel.getCleanType()}.png" alt="${pluginModel.getCleanType()}" height=40 width=40 />
9696
</td>
9797
<td style="border:none; max-width: 200px; overflow: hidden; text-overflow: ellipsis;">
9898
${pluginModel.getPlugin().getName()}

0 commit comments

Comments
 (0)