174 lines
5.9 KiB
Text
174 lines
5.9 KiB
Text
<% if current_user.scholar %>
|
|
<h2>Scholarship</h2>
|
|
<h3>
|
|
Congratulations on your DEV scholarship! Your scholarship ends
|
|
<%= current_user.workshop_expiration.nil? ? "never" : current_user.workshop_expiration.strftime("%b %d, %Y") %>.
|
|
<br>
|
|
<br>
|
|
<a href="/events">See our events for the month!</a>
|
|
</h3>
|
|
<% end %>
|
|
|
|
<h2>Features</h2>
|
|
<%= form_for(@user) do |f| %>
|
|
<div class="sub-field">
|
|
<%= f.label :editor_version, "Editor version: v1 or v2" %>
|
|
<%= f.select :editor_version, options_for_select(["v1", "v2"], @user.editor_version) %>
|
|
<sub><em>v2 is currently in beta</em></sub>
|
|
</div>
|
|
<div class="field">
|
|
<label></label>
|
|
<%= f.hidden_field :tab, value: @tab %>
|
|
<%= f.submit "SUBMIT", class: "cta" %>
|
|
</div>
|
|
<% end %>
|
|
<h2>Feed Customization</h2>
|
|
<%= form_for(@user) do |f| %>
|
|
<div class="sub-field">
|
|
<%= f.label :experience_level, "Enter your coding experience level (1-10)" %>
|
|
<%= f.text_field :experience_level %>
|
|
<sub><em>This will not be displayed on your profile or anywhere publicly. It will help determine what content you are shown along with tags you follow etc.</em></sub>
|
|
</div>
|
|
<div class="field">
|
|
<label></label>
|
|
<%= f.hidden_field :tab, value: @tab %>
|
|
<%= f.submit "SUBMIT", class: "cta" %>
|
|
</div>
|
|
<% end %>
|
|
<h2>Style Customization</h2>
|
|
<%= form_for(@user) do |f| %>
|
|
<div class="sub-field">
|
|
<%= f.label :config_theme, "Site Theme" %>
|
|
<%= f.select(:config_theme, options_for_select(["default", "night theme", "pink theme"], @user.config_theme.tr("_", " "))) %>
|
|
<sub><em>Default is light style. Night theme is in public alpha.</em></sub>
|
|
</div>
|
|
<div class="sub-field">
|
|
<%= f.label :config_font, "Base Post Font" %>
|
|
<%= f.select(:config_font, options_for_select(["default", "sans serif", "comic sans"], @user.config_font.tr("_", " "))) %>
|
|
<sub><em>Default is serif style.</em></sub>
|
|
</div>
|
|
<div class="field">
|
|
<label></label>
|
|
<%= f.hidden_field :tab, value: @tab %>
|
|
<%= f.submit "SUBMIT", class: "cta" %>
|
|
</div>
|
|
<% end %>
|
|
<h2>Languages</h2>
|
|
<h3>Select which languages you'd prefer to see in your feed <span style="color:#e05252">(beta)</span></h3>
|
|
<h4 style="font-weight:400">
|
|
This setting controls which languages you are more likely to see throughout the site, but you may still see other languages, especially English.
|
|
</h4>
|
|
|
|
<%= form_for(@user) do |f| %>
|
|
<div class="checkbox-field">
|
|
<div class="sub-field">
|
|
<%= f.check_box :prefer_language_en %>
|
|
<%= f.label :prefer_language_en, "English" %>
|
|
</div>
|
|
<div class="sub-field">
|
|
<%= f.check_box :prefer_language_ja %>
|
|
<%= f.label :prefer_language_ja, "Japanese" %>
|
|
</div>
|
|
<div class="sub-field">
|
|
<%= f.check_box :prefer_language_es %>
|
|
<%= f.label :prefer_language_es, "Spanish" %>
|
|
</div>
|
|
<div class="sub-field">
|
|
<%= f.check_box :prefer_language_fr %>
|
|
<%= f.label :prefer_language_fr, "French" %>
|
|
</div>
|
|
<div class="sub-field">
|
|
<%= f.check_box :prefer_language_it %>
|
|
<%= f.label :prefer_language_it, "Italian" %>
|
|
</div>
|
|
<div class="sub-field">
|
|
<%= f.check_box :prefer_language_pt %>
|
|
<%= f.label :prefer_language_pt, "Portugese" %>
|
|
</div>
|
|
</div>
|
|
<div class="field">
|
|
<label></label>
|
|
<%= f.hidden_field :tab, value: @tab %>
|
|
<%= f.submit "SUBMIT", class: "cta" %>
|
|
</div>
|
|
<% end %>
|
|
|
|
<h3>
|
|
This feature is in beta and will improve over time. Another way to tailor your feed is to discover and follow members who write in your preferred language.
|
|
</h3>
|
|
|
|
<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) 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 %>
|
|
<%= 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) 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 %>
|
|
<%= f.submit "SUBMIT", class: "cta" %>
|
|
</div>
|
|
<% end %>
|
|
<% end %>
|
|
|
|
<h2> Connect </h2>
|
|
|
|
<h3> Inbox Type </h3>
|
|
|
|
<%= form_for(@user) 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, [["Open", "open"], ["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 %>
|