Files
nairobi/app/views/dashboard/actions/new_request.html.erb
Javi Martín 391f58eb90 Sanitize dashboard action before displaying it
We were using `<%==`, which is the same as using `raw`.

Note ERB Lint doesn't warn us of this usage. Brakeman does warn us,
though.
2019-10-08 19:10:14 +02:00

22 lines
675 B
Plaintext

<% content_for :action_title, dashboard_action.title %>
<div class="row expanded">
<div class="small-12 medium-8 column">
<%= WYSIWYGSanitizer.new.sanitize(dashboard_action.description) %>
<%= render "dashboard/form" %>
</div>
<div class="small-12 medium-4 column">
<%= render "documents/documents", documents: dashboard_action.documents %>
<% if dashboard_action.links.any? %>
<div class="margin-top">
<h4><%= t("dashboard.new_request.links") %></h4>
<% dashboard_action.links.each do |link| %>
<p><%= link_to link.label, link.url, target: "_blank" %></p>
<% end %>
</div>
<% end %>
</div>
</div>