Apply Rails/SafeNavigation rule in ERB files
This commit is contained in:
@@ -25,7 +25,7 @@
|
|||||||
<h2 id="classification"><%= t("admin.budget_investments.show.classification") %></h2>
|
<h2 id="classification"><%= t("admin.budget_investments.show.classification") %></h2>
|
||||||
|
|
||||||
<p><strong><%= t("admin.budget_investments.show.assigned_admin") %>:</strong>
|
<p><strong><%= t("admin.budget_investments.show.assigned_admin") %>:</strong>
|
||||||
<%= @investment.administrator.try(:name_and_email) || t("admin.budget_investments.show.undefined") %>
|
<%= @investment.administrator&.name_and_email || t("admin.budget_investments.show.undefined") %>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p id="tags">
|
<p id="tags">
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<% if valuator.valuator_group.present? %>
|
<% if valuator.valuator_group.present? %>
|
||||||
<%= valuator.valuator_group.try(:name) %>
|
<%= valuator.valuator_group&.name %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= t("admin.valuators.index.no_group") %>
|
<%= t("admin.valuators.index.no_group") %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<% if current_user.poll_officer? %>
|
<% if current_user.poll_officer? %>
|
||||||
<div id="officing-booth" class="callout info">
|
<div id="officing-booth" class="callout info">
|
||||||
<%= t("admin.officing_booth.title", booth: try(:current_booth).try(:location)) %>
|
<%= t("admin.officing_booth.title", booth: try(:current_booth)&.location) %>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="<%= I18n.locale %>" data-current-user-id="<%= current_user.try(:id) %>">
|
<html lang="<%= I18n.locale %>" data-current-user-id="<%= current_user&.id %>">
|
||||||
<head>
|
<head>
|
||||||
<%= render "layouts/common_head", default_title: setting["org_name"] %>
|
<%= render "layouts/common_head", default_title: setting["org_name"] %>
|
||||||
<%= render "layouts/tracking_data" %>
|
<%= render "layouts/tracking_data" %>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="<%= I18n.locale %>" data-current-user-id="<%= current_user.try(:id) %>">
|
<html lang="<%= I18n.locale %>" data-current-user-id="<%= current_user&.id %>">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
|||||||
Reference in New Issue
Block a user