docbrown/app/views/users/_misc.html.erb
Ben Halpern a716cf2756
Create UX Customization tab in settings (#5307) [deploy]
* Create UX Customization tab in settings

* Add variable import

* Change from UX Customization to just UX
2019-12-31 09:35:15 -05:00

74 lines
No EOL
2.6 KiB
Text

<h3>👋 Style customizations have moved to <a href="/settings/ux">UX</a>
<h2> Connect </h2>
<h3> Inbox Type </h3>
<%= form_for(@user, html: { id: nil }) do |f| %>
<div class="field checkbox-label-first">
<%= f.label :inbox_type, "Open your inbox to messages from people you don't follow or keep your inbox private to mutual follows." %>
<div class="sub-field">
<%= f.select :inbox_type, [%w[Open open], %w[Private private]] %>
</div>
<%= f.label :inbox_guidelines, "Open inbox guidelines/instructions (optional)" %>
<div class="sub-field">
<%= f.text_area :inbox_guidelines, maxlength: 200, placeholder: "For example:
- Only contact me about consulting opportunities.
- I'm happy to help beginners with CSS.
- Allow for a few days to respond.
- etc.
" %>
</div>
<%= f.submit "SUBMIT", class: "cta" %>
</div>
<% end %>
<%= render "language_settings" %>
<h2>Sponsors</h2>
<h4 style="font-weight:400">
You have the option to remove sponsor messaging (where it is practical to do so). Our wonderful sponsors help sustain the platform and improve your experience, and we strive to make their presence constructive to the community, but feel free to use this setting if you wish.
</h4>
<%= form_for(@user, html: { id: nil }) do |f| %>
<div class="checkbox-field">
<div class="sub-field">
<%= f.check_box :display_sponsors %>
<%= f.label :display_sponsors, "Display Sponsors (When browsing)" %>
</div>
<div class="sub-field">
<%= f.check_box :permit_adjacent_sponsors %>
<%= f.label :permit_adjacent_sponsors, "Permit Nearby Sponsors (When publishing)" %>
</div>
</div>
<div class="field">
<label></label>
<%= f.hidden_field :tab, value: @tab, id: nil %>
<%= f.submit "SUBMIT", class: "cta" %>
</div>
<% end %>
<h2>Export content</h2>
<% if @user.export_requested? %>
<h4 style="font-weight:400">
You have recently requested an export of your content.
Please check your email.
</h4>
<% else %>
<h4 style="font-weight:400">
You can request an export of all your content.
Currently we only support the export of your posts and comments.
They will be emailed to your inbox.
</h4>
<%= form_for(@user, html: { id: nil }) do |f| %>
<div class="checkbox-field">
<div class="sub-field">
<%= f.check_box :export_requested %>
<%= f.label :export_requested, "Request an export of your content" %>
</div>
</div>
<div class="field">
<label></label>
<%= f.hidden_field :tab, value: @tab, id: nil %>
<%= f.submit "SUBMIT", class: "cta" %>
</div>
<% end %>
<% end %>