mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Drop country_select
We are using i18n_data directly.
This commit is contained in:
parent
94ec47dcc5
commit
d9f86d0564
4 changed files with 5 additions and 16 deletions
|
|
@ -20,8 +20,7 @@ class Venue < ApplicationRecord
|
|||
end
|
||||
|
||||
def country_name
|
||||
name = ISO3166::Country[country]
|
||||
name&.iso_short_name
|
||||
I18nData.countries[country]
|
||||
end
|
||||
|
||||
def location?
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@
|
|||
= sanitize link_to(venue.name, venue.website)
|
||||
- else
|
||||
= venue.city
|
||||
- if venue.country_name != 'US'
|
||||
- if venue.country_name
|
||||
•
|
||||
= venue.country_name
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue