Skip to content

Commit

Permalink
Adding province name and flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlotte vm authored and Charlotte vm committed Dec 6, 2023
1 parent 1078a0d commit d7a26cc
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions app/assets/stylesheets/_root.sass
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ body#root
@include flag($region: "uk_united_kingdom")
&.UK_united_kingdom
@include flag($region: "sg_singapore")
&.NH5_efate
@include flag($region: "nh5_efate")

// &.UKNI01_northern_ireland
span.root-button
Expand Down
3 changes: 2 additions & 1 deletion app/models/engine/area.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class Engine::Area < ActiveResource::Base
ORDER = %w(
country
province
province_vanuatu
municipality_dk
municipality_be
municipality
Expand Down Expand Up @@ -78,7 +79,7 @@ def use_network_calculations?
end

def country?
%w[province municipality_dk municipality_be municipality neighborhood neighbourhood_be region res].exclude?(group)
%w[province province_vanuatu municipality_dk municipality_be municipality neighborhood neighbourhood_be region res].exclude?(group)
end

# Public: Gets the country to which the area belongs.
Expand Down
1 change: 1 addition & 0 deletions config/locales/en_areas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -997,6 +997,7 @@ en:
unsorted: Unsorted
country: Countries
province: Provinces - Netherlands
province_vanuatu: Provinces - Vanuatu
region: Regions
res: RES region
municipality: Municipalities - Netherlands
Expand Down
3 changes: 2 additions & 1 deletion config/locales/nl_areas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,8 @@ nl:
third_party: "Regio's van derden en overig"
unsorted: Ongesorteerd
country: Landen
province: Provincies
province: Provincies - Nederland
province_vanuatu: Provincies - Vanuatu
region: Regio's
res: RES-regio's
municipality: Gemeentes - Nederland
Expand Down

0 comments on commit d7a26cc

Please sign in to comment.