warn users with trading lists but no neomail address
This commit is contained in:
parent
f11d95c273
commit
026bdbbc0c
4 changed files with 13 additions and 0 deletions
|
@ -75,6 +75,8 @@
|
||||||
= closet_visibility_descriptions
|
= closet_visibility_descriptions
|
||||||
- if has_lists?(owned)
|
- if has_lists?(owned)
|
||||||
%h4= t '.unlisted.header'
|
%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-content
|
||||||
.closet-list-hangers
|
.closet-list-hangers
|
||||||
= render_unlisted_closet_hangers(owned)
|
= render_unlisted_closet_hangers(owned)
|
||||||
|
|
|
@ -11,6 +11,9 @@
|
||||||
= submit_tag t('.delete'), :confirm => closet_list_delete_confirmation(closet_list)
|
= submit_tag t('.delete'), :confirm => closet_list_delete_confirmation(closet_list)
|
||||||
%h4= closet_list.name
|
%h4= closet_list.name
|
||||||
|
|
||||||
|
- if show_controls
|
||||||
|
= render partial: 'closet_lists/trading_neomail_warning', locals: {list: closet_list, user: @user}
|
||||||
|
|
||||||
.closet-list-content
|
.closet-list-content
|
||||||
- if closet_list.description?
|
- if closet_list.description?
|
||||||
= closet_list_description_format closet_list
|
= closet_list_description_format closet_list
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
- if list.visibility_level.trading? && !user.contact_neopets_username?
|
||||||
|
%p.warning= t 'closet_lists.closet_list.trading_neomail_warning_html'
|
|
@ -185,6 +185,12 @@ en:
|
||||||
Are you sure you want to delete "%{list_name}"? Even if you do, we'll
|
Are you sure you want to delete "%{list_name}"? Even if you do, we'll
|
||||||
remember that you want these items.
|
remember that you want these items.
|
||||||
empty: This list is empty.
|
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:
|
edit:
|
||||||
title: Editing list "%{list_name}"
|
title: Editing list "%{list_name}"
|
||||||
|
|
Loading…
Reference in a new issue