Use safe_join instead of <%==
Using `<%==` is the same as using `raw`, and here we only want to mark as safe a `<br>` tag.
This commit is contained in:
@@ -65,7 +65,7 @@ module ProposalsDashboardHelper
|
|||||||
supports: number_with_delimiter(resource.required_supports,
|
supports: number_with_delimiter(resource.required_supports,
|
||||||
delimiter: ".")) if resource.required_supports > 0
|
delimiter: ".")) if resource.required_supports > 0
|
||||||
|
|
||||||
label.join(" #{t("dashboard.resource.and")}<br>")
|
safe_join label, h(" #{t("dashboard.resource.and")})") + tag(:br)
|
||||||
end
|
end
|
||||||
|
|
||||||
def daily_selected_class
|
def daily_selected_class
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
class: "button expanded" %>
|
class: "button expanded" %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<strong>
|
<strong>
|
||||||
<%== resource_availability_label(resource) %>
|
<%= resource_availability_label(resource) %>
|
||||||
</strong>
|
</strong>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user