1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-19 13:54:25 +01:00

use File.join to concat path

This commit is contained in:
Sylvain 2021-02-22 10:19:44 +01:00
parent 10b463d292
commit 2ef4e52885

View File

@ -23,9 +23,17 @@
<tr>
<td align="center">
<% if CustomAsset.get_url('logo-file') %>
<a href="<%= root_url %>"><img src="<%= root_url + CustomAsset.get_url('logo-file') %>" alt="<%=fablab_name%>" width="140px;"></a>
<a href="<%= root_url %>">
<img src="<%= File.join(root_url, CustomAsset.get_url('logo-file')) %>"
alt="<%=fablab_name%>"
width="140px;" />
</a>
<% else %>
<a href="<%= root_url %>"><img src="<%= root_url + asset_pack_path('media/images/fabmanager-logo.png') %>" alt="<%=fablab_name%>" width="140px;"></a>
<a href="<%= root_url %>">
<img src="<%= File.join(root_url, asset_pack_path('media/images/fabmanager-logo.png')) %>"
alt="<%=fablab_name%>"
width="140px;" />
</a>
<% end %>
</td>
</tr>