Skip to content

Commit

Permalink
Show states in region breadcrumbs (#2088)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsanheim committed Feb 19, 2021
1 parent e0f8e3e commit cc3e4e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/reports/regions/_header.html.erb
Expand Up @@ -11,7 +11,7 @@
<% # we can get rid of this check when FacilityDistrict goes away %>
<% if @region.respond_to?(:ancestors) %>
<% @region.ancestors.where(region_type: %w[district block facility]).order(:path).each do |region| %>
<% @region.ancestors.where(region_type: %w[state district block facility]).order(:path).each do |region| %>
<i class="fas fa-chevron-right"></i>
<%= link_to_if(accessible_region?(region, :view_reports), region.name, reports_region_path(region.slug, report_scope: region.region_type)) %>
<% end %>
Expand Down

0 comments on commit cc3e4e9

Please sign in to comment.