mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
ability to temp disable create
This commit is contained in:
parent
9fa4cc0e13
commit
c31b45575f
2 changed files with 43 additions and 39 deletions
|
@ -80,6 +80,8 @@ get '/?' do
|
||||||
@blog_feed_html = SimpleCache.get :blog_feed_html
|
@blog_feed_html = SimpleCache.get :blog_feed_html
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@create_disabled = defined?(BlackBox.create_disabled?) && BlackBox.create_disabled?(request)
|
||||||
|
|
||||||
erb :index, layout: :index_layout
|
erb :index, layout: :index_layout
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -96,6 +96,9 @@
|
||||||
<fieldset class="content">
|
<fieldset class="content">
|
||||||
<h2 class="gamma">Sign up for free</h2>
|
<h2 class="gamma">Sign up for free</h2>
|
||||||
<hr />
|
<hr />
|
||||||
|
<% if @create_disabled %>
|
||||||
|
<p>Sign up is not currently available, please try again later.</p>
|
||||||
|
<% else %>
|
||||||
<div class="siteCreateInputs">
|
<div class="siteCreateInputs">
|
||||||
<label for="create-Input">Username</label>
|
<label for="create-Input">Username</label>
|
||||||
<input type="text" name="prevent_autofill_username" id="prevent_autofill_username" value="" style="position:absolute; top:-2000px; left:-2000px;" />
|
<input type="text" name="prevent_autofill_username" id="prevent_autofill_username" value="" style="position:absolute; top:-2000px; left:-2000px;" />
|
||||||
|
@ -140,10 +143,9 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<% end %>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
</div> <!-- end .col-50 -->
|
</div> <!-- end .col-50 -->
|
||||||
|
|
Loading…
Add table
Reference in a new issue