warn users with trading lists but no neomail address

This commit is contained in:
Emi Matchu 2014-12-02 10:05:11 -06:00
parent f11d95c273
commit 026bdbbc0c
4 changed files with 13 additions and 0 deletions

View file

@ -75,6 +75,8 @@
= closet_visibility_descriptions
- if has_lists?(owned)
%h4= t '.unlisted.header'
- if !@public_perspective
= render partial: 'closet_lists/trading_neomail_warning', locals: {list: @user.null_closet_list(owned), user: @user}
.closet-list-content
.closet-list-hangers
= render_unlisted_closet_hangers(owned)

View file

@ -11,6 +11,9 @@
= submit_tag t('.delete'), :confirm => closet_list_delete_confirmation(closet_list)
%h4= closet_list.name
- if show_controls
= render partial: 'closet_lists/trading_neomail_warning', locals: {list: closet_list, user: @user}
.closet-list-content
- if closet_list.description?
= closet_list_description_format closet_list

View file

@ -0,0 +1,2 @@
- if list.visibility_level.trading? && !user.contact_neopets_username?
%p.warning= t 'closet_lists.closet_list.trading_neomail_warning_html'

View file

@ -185,6 +185,12 @@ en:
Are you sure you want to delete "%{list_name}"? Even if you do, we'll
remember that you want these items.
empty: This list is empty.
trading_neomail_warning_html:
You've marked this list as Trading, so folks will discover it via Dress
to Impress, but they might not know how to contact you. If you'd like
to hear from those people, <strong>set a Neomail address at the top of
the page</strong>.
(If not, maybe you want a Public list instead of Trading.)
edit:
title: Editing list "%{list_name}"