Skip to content

Commit

Permalink
Merge branch 'production'
Browse files Browse the repository at this point in the history
  • Loading branch information
akegan committed May 7, 2019
2 parents 0ee2a36 + ed6a2b6 commit 4114436
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ article.feed-item.animated-fade ng-class="applicationStyle()" ng-hide="isDeleted
' {{listing.Application_Due_Date | date : "MMM d, yyyy" }}
section.feed-item-content
.feed-item-details
p.feed-item-address
p.feed-item-address.skiptranslate
| {{formattedAddress()}}
p.feed-item-number(ng-if="::isSubmitted()" translate="MY_APPLICATIONS.YOUR_LOTTERY_NUMBER_IS" translate-value-lottery-number="{{::lotteryNumber()}}" translate-compile)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ section.results-section#listing-results ng-if="!$ctrl.parent.openListings.length
.has-eligibility-filters ng-if="$ctrl.parent.hasEligibilityFilters()"

/ No Matches Section Heading
section.results-section.no-match.border-top ng-if="!$ctrl.openMatchListings.length"
section.results-section.no-match.border-top#listing-results ng-if="!$ctrl.openMatchListings.length"
/ Notification: No Matches based on Eligibility
.row
.large-12.columns
Expand All @@ -68,7 +68,7 @@ section.results-section#listing-results ng-if="!$ctrl.parent.openListings.length
.margin-top--2x ng-include="'listings/templates/_housing-counselor.html'"

/ Notification: Matched listings
section.results-section.bg-dust ng-if="$ctrl.openMatchListings.length"
section.results-section.bg-dust#listing-results ng-if="$ctrl.openMatchListings.length"
.row
.large-12.columns
header.status-header.status--matched
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,16 @@ angular.module('dahlia.components')
IncomeCalculatorService.resetIncomeSources()

@headerText = () ->
listingTypeTranslation = $translate.instant('LISTINGS.' + @tenureType.toUpperCase())
interpolate = { listingsType: listingTypeTranslation }
$translate.instant('LISTINGS.SHOWING_MATCHES_FOR', interpolate)
if @tenureType == 'sale'
$translate.instant('LISTINGS.SHOWING_MATCHES_FOR_SALE')
else if @tenureType == 'rental'
$translate.instant('LISTINGS.SHOWING_MATCHES_FOR_RENT')

@noMatchesLabel = () ->
listingTypeTranslation = $translate.instant('LISTINGS.' + @tenureType.toUpperCase())
$translate.instant('LISTINGS.YOU_DONT_MATCH_ANY', type: listingTypeTranslation)
if @tenureType == 'sale'
$translate.instant('LISTINGS.YOU_DONT_MATCH_ANY_SALE')
else if @tenureType == 'rental'
$translate.instant('LISTINGS.YOU_DONT_MATCH_ANY_RENT')

return ctrl
]
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@
| {{'LISTINGS.APPLY.INCLUDE_AN_ENVELOPE' | translate}}

/ Section 2a: Send by Mail
.content-group.bg-snow.skiptranslate ng-if="::$ctrl.parent.listing.Accepting_applications_by_PO_Box" ng-class="{'has-divider': $ctrl.parent.listing.Accepting_applications_at_leasing_agent}"
.content-group.bg-snow ng-if="::$ctrl.parent.listing.Accepting_applications_by_PO_Box" ng-class="{'has-divider': $ctrl.parent.listing.Accepting_applications_at_leasing_agent}"
h3.content-group_title
| {{'LISTINGS.APPLY.SEND_BY_US_MAIL' | translate}}
p.content-group_address.no-margin
p.content-group_address.no-margin.skiptranslate
| {{ ::$ctrl.parent.listing.Application_Organization}}
p.content-group_address
p.content-group_address.skiptranslate
| {{ ::$ctrl.parent.listing.Application_Street_Address }}
br
| {{ ::$ctrl.parent.listing.Application_City }} {{ ::$ctrl.parent.listing.Application_State }} {{ ::$ctrl.parent.listing.Application_Postal_Code }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
header.directory-header#listings_header ng-if="!$ctrl.parent.hasEligibilityFilters()"
header.directory-header#listings_header
.row
.directory-header_title.medium-7.columns
h1 translate="PAGE_TITLE.BUY"
Expand Down
14 changes: 7 additions & 7 deletions app/assets/json/translations/locale-en.json
Original file line number Diff line number Diff line change
Expand Up @@ -697,9 +697,9 @@
"INCLUDES_PRIORITY_UNITS": "Includes Priority Units for {{priorities}}",
"INCOME_EXCEPTIONS": {
"INTRO": "People in your household may need <a href='{{url}}' target='_blank'>special income calculations</a> if they:",
"STUDENTS": "Are full-time students (but not the primary applicant)",
"NONTAXABLE": "Receive <span data-tooltip='{{tooltip}}' title='{{tooltip}}' aria-haspopup='true' class='has-tip'>non-taxable income</span>",
"NONTAXABLE_TOOLTIP": "Non-taxable income might include SSI, SSDI, child support payments, and worker’s compensation benefits."
"NONTAXABLE_TOOLTIP": "Non-taxable income might include SSI, SSDI, child support payments, and worker’s compensation benefits.",
"STUDENTS": "Are full-time students (but not the primary applicant)"
},
"LOTTERY_RESULTS": {
"HIDE": "Hide Lottery Results",
Expand All @@ -714,9 +714,9 @@
"NO_OPEN_LISTINGS": "No listings currently have open applications.",
"OCCUPANCY_DESCRIPTION_ALL_SRO": "Occupancy for this building is limited to 1 person per unit.",
"OCCUPANCY_DESCRIPTION_ALL_SRO_PLURAL": "Occupancy for this building is limited to {{numberOfPeople}} people per unit.",
"OCCUPANCY_DESCRIPTION_MIN_ONE": "A minimum of one person per bedroom is required.",
"OCCUPANCY_DESCRIPTION_NO_SRO": "Occupancy limits for this building differ from household size, and do not include children under 6.",
"OCCUPANCY_DESCRIPTION_SOME_SRO": "Occupancy for this building varies by unit type. SROs are limited to 1 person per unit, regardless of age. For all other unit types, occupancy limits do not count children under 6.",
"OCCUPANCY_DESCRIPTION_MIN_ONE": "A minimum of one person per bedroom is required.",
"OPEN_WAITLIST": "Open Waitlist",
"OPEN_WAITLIST_SLOTS": "Open Waitlist Slots",
"PEOPLE": "people",
Expand All @@ -729,20 +729,19 @@
"REALTOR_COMMISSION_NOT_ELIGIBLE": "Your realtor is not eligible for a commission on this unit",
"REALTOR_COMMISSION_PERCENTAGE": " {{percentage}}% of the sales price",
"REMAINING_UNITS_AFTER_PREFERENCE_CONSIDERATION": "After all preference holders have been considered, any remaining units will be available to qualified applicants in lottery order.",
"RENTAL": "rent",
"REQUIRED_DOCUMENTS": "Required Documents",
"REQUIRED_DOCUMENTS_AFTER_APPLYING": "Should your application be chosen from the lottery, be prepared to fill out a more detailed application and provide <a href='{{url}}' target='_blank'>required supporting documents</a> within 5 business days of being contacted.",
"RESERVED_COMMUNITY_BUILDING": "{{type}} Building",
"RESERVED_FOR": "Reserved for {{type}}",
"RESERVED_UNITS": "Reserved Units",
"RESERVED_UNITS_DESCRIPTION": "In order to qualify for these units one of the following must apply to you or someone in your household:",
"RESERVED_UNITS_FOR_WHO_ARE": "Reserved for {{communityType}} who are {{reservedType}}",
"SALE": "sale",
"RE_PRICING": "Resale Price Restrictions",
"SEE_MAXIMUM_INCOME_INFORMATION": "See Maximum Income Information",
"SEE_PREFERENCE_INFORMATION": "See Preference Information",
"SEE_UNIT_INFORMATION": "See Unit Information",
"SHOWING_MATCHES_FOR": "Showing matching units for {{listingsType}}",
"SHOWING_MATCHES_FOR_RENT": "Showing matching units for rent",
"SHOWING_MATCHES_FOR_SALE": "Showing matching units for sale",
"SINGLE_ROOM_OCCUPANCY": "Single Room Occupancy",
"SINGLE_ROOM_OCCUPANCY_DESCRIPTION": "This property offers single rooms for one person only. Tenants may share bathrooms, and sometimes kitchen facilities.",
"SPECIAL_NOTES": "Special Notes",
Expand All @@ -757,7 +756,8 @@
},
"VIEW_LOTTERY_RESULTS": "View Lottery Results",
"WAITLIST_IS_OPEN": "Waitlist is open",
"YOU_DONT_MATCH_ANY": "Based on information you entered, you don't match any current listings for {{type}}.",
"YOU_DONT_MATCH_ANY_RENT": "Based on information you entered, you don't match any current listings for rent.",
"YOU_DONT_MATCH_ANY_SALE": "Based on information you entered, you don't match any current listings for sale.",
"YOU_MAY_BE_ELIGIBLE": "Based on information you entered, you may be eligible for units at the following property."
},
"LISTINGS_FOR_RENT": {
Expand Down

0 comments on commit 4114436

Please sign in to comment.