Style and accessibility improvments and fixed links in emails

This commit is contained in:
Godwin
2016-06-07 20:43:43 -07:00
parent 98a33e42ee
commit 5c11c6147e
17 changed files with 87 additions and 41 deletions
+5
View File
@@ -602,6 +602,9 @@ module ApplicationHelper
city = location.data['city']
end
# we need cities for our logic, don't let this continue if we don't have one
return nil unless city.present?
hash = Hash.new
hash[:city] = _!(city) unless city.blank?
hash[:region] = _("geography.subregions.#{country}.#{region}") unless region.blank? || country.blank?
@@ -612,6 +615,8 @@ module ApplicationHelper
end
def same_city?(location1, location2)
return false unless location1.present? && location2.present?
location1 = location(location1) unless location1.is_a?(String)
location2 = location(location2) unless location2.is_a?(String)