remove counter

This commit is contained in:
Kyle Drake 2014-10-13 17:15:15 -07:00
parent 47dde508d3
commit 54376428ef
2 changed files with 2 additions and 2 deletions

View file

@ -700,7 +700,7 @@ class Site < Sequel::Model
end end
if new? && !parent? && account_sites_dataset.count >= CHILD_SITES_MAX if new? && !parent? && account_sites_dataset.count >= CHILD_SITES_MAX
errors.add :child_site_id, "Cannot add child site, exceeds #{CHILD_SITES_MAX} limit." errors.add :child_site_id, "For spam prevention reasons, we've capped site creation to #{CHILD_SITES_MAX} sites. Please contact Neocities support to raise your site limit."
end end
end end

View file

@ -18,7 +18,7 @@
<h3>Create New Site</h3> <h3>Create New Site</h3>
<p>You can now create new sites that are linked to this account! Sites will share the free space you have available. You have <strong><%= Site::CHILD_SITES_MAX - current_site.account_sites_dataset.count %></strong> new sites remaining.</p> <p>You can now create new sites that are linked to this account! All of your sites will share the free space you have available.</p>
<form action="/settings/create_child" method="POST"> <form action="/settings/create_child" method="POST">
<%== csrf_token_input_html %> <%== csrf_token_input_html %>