Fix background images with special characters
Just like we did for budgets, we're doing the same thing in all the places where we render background images attached by either regular users or administrators. This way we correctly render background images with characters like brackets or quotes.
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
<%= raw setting["html.per_page_code_body"] %>
|
||||
<div class="wrapper">
|
||||
<div class="auth-image small-12 medium-3 column"
|
||||
style="background-image: url(<%= asset_url(image_path_for("auth_bg.jpg")) %>)">
|
||||
style="<%= attached_background_css asset_url(image_path_for("auth_bg.jpg")) %>">
|
||||
<h1 class="logo margin">
|
||||
<%= link_to root_path do %>
|
||||
<%= image_tag(image_path_for("logo_header.png"), class: "float-left", alt: setting["org_name"]) %>
|
||||
|
||||
Reference in New Issue
Block a user