forked from External/greenlight
Added fallback message if image url is invalid (#1149)
Co-authored-by: Jesus Federico <jesus@123it.ca>
This commit is contained in:
parent
6dc0ffc5c1
commit
509215ae8d
|
@ -17,7 +17,11 @@
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="d-flex">
|
<div class="d-flex">
|
||||||
<%= link_to (current_user ? home_page : root_path), class: "header-brand" do %>
|
<%= link_to (current_user ? home_page : root_path), class: "header-brand" do %>
|
||||||
<%= image_tag(logo_image, class: "header-brand-img", alt:"") %>
|
<% begin %>
|
||||||
|
<%= image_tag(logo_image, class: "header-brand-img", alt:"") %>
|
||||||
|
<% rescue %>
|
||||||
|
<%= t("administrator.site_settings.branding.invalid") %>
|
||||||
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<div class="d-flex ml-auto">
|
<div class="d-flex ml-auto">
|
||||||
|
|
|
@ -42,6 +42,7 @@ en:
|
||||||
info: Change the branding image that appears in the top left corner
|
info: Change the branding image that appears in the top left corner
|
||||||
placeholder: Image Url...
|
placeholder: Image Url...
|
||||||
title: Branding Image
|
title: Branding Image
|
||||||
|
invalid: Invalid URL
|
||||||
cache:
|
cache:
|
||||||
info: Clears the stored provider cache which forces a new request for the updated info
|
info: Clears the stored provider cache which forces a new request for the updated info
|
||||||
title: Clear Provider Cache
|
title: Clear Provider Cache
|
||||||
|
|
Loading…
Reference in New Issue