diff --git a/Gemfile.lock b/Gemfile.lock index 59ff6854..5c1c776c 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -141,7 +141,7 @@ GEM mime-types (>= 1.16, < 3.0) netrc (~> 0.7) retriable (1.4.1) - rmagick (2.13.2) + rmagick (2.13.3) safe_yaml (1.0.1) sass (3.3.8) screencap (0.1.1) diff --git a/environment.rb b/environment.rb index 4345f221..e5fb61d4 100644 --- a/environment.rb +++ b/environment.rb @@ -61,7 +61,9 @@ if ENV['RACK_ENV'] == 'development' module Worker module ClassMethods def perform_async(*args) - self.new.perform *args + Thread.new { + self.new.perform *args + } end end end diff --git a/views/settings.erb b/views/settings.erb index deaa5499..a5ad2212 100644 --- a/views/settings.erb +++ b/views/settings.erb @@ -22,109 +22,67 @@ <% end %> + -

Neocities Plan

- <% if current_site.supporter? && !current_site.plan_ended %> -

You currently have the Supporter Plan (<%= current_site.maximum_space_in_megabytes %>MB). Thank you! We love you. -

- Manage Plan - <% else %> -

- You currently have the Free Plan (<%= current_site.maximum_space_in_megabytes %>MB).
Want to get more space and help Neocities? Become a supporter! -

- Supporter Info - <% end %> - -

Site Profile

-
-
- <%== csrf_token_input_html %> -

- - checked<% end %> - > Turn off profile comments -

- - -
+
+ +
+
+ <%== erb :'settings/plan' %> +
+
+ <%== erb :'settings/profile' %> +
+
+ <%== erb :'settings/custom_domain' %> +
+
+ <%== erb :'settings/password' %> +
+
+ <%== erb :'settings/email' %> +
+
+ <%== erb :'settings/username' %> +
+
+ <%== erb :'settings/nsfw' %> +
+
-

Custom Domain

-

- You can configure a custom domain for your Neocities site! Click Here for more information. -

- -

Change Password

-
- <%== csrf_token_input_html %> - -

Current Password:

- - -

New Password:

- - -

Confirm New Password:

- - - -
- -

Change Email

-
- <%== csrf_token_input_html %> - -

Current Email: <%= current_site.email %>

-

New Email:

- - -
- -
-
- -

Change Site (User) Name

-
- <%== csrf_token_input_html %> -

- It cannot contain spaces, and can only use the following characters: a-z A-Z 0-9 _ - -

- -

- Current Name: - <%= current_site.username %> -

- -

- New name: - -

- - -
- - -

18+ Content

- -

- If your site contains objectionable (18+) content, check this box. Your site will not be removed, but it will be listed on a special browse page. We don't have an official policy on what defines 18+ content yet, but basically it's just pornography and lewd/sick/gross images. Thanks for your patience and understanding as we try to find a way to balance out the needs of everyone. -

- -
- <%== csrf_token_input_html %> - -

- - My page has 18+ content:    - checked<% end %> - > - -

- - -