mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
nsfw flag
This commit is contained in:
parent
d661711204
commit
3c2d97046d
2 changed files with 9 additions and 1 deletions
2
app.rb
2
app.rb
|
@ -54,7 +54,7 @@ end
|
||||||
|
|
||||||
post '/create' do
|
post '/create' do
|
||||||
dashboard_if_signed_in
|
dashboard_if_signed_in
|
||||||
@site = Site.new username: params[:username], password: params[:password], email: params[:email], new_tags: params[:tags]
|
@site = Site.new username: params[:username], password: params[:password], email: params[:email], new_tags: params[:tags], is_nsfw: params[:is_nsfw]
|
||||||
|
|
||||||
recaptcha_is_valid = recaptcha_valid?
|
recaptcha_is_valid = recaptcha_valid?
|
||||||
|
|
||||||
|
|
|
@ -58,6 +58,14 @@ javascript:
|
||||||
.span6
|
.span6
|
||||||
p: input name="tags" type="text" style="width: 400px" placeholder="pokemon, video games, bulbasaur" value="#{params[:tags]}"
|
p: input name="tags" type="text" style="width: 400px" placeholder="pokemon, video games, bulbasaur" value="#{params[:tags]}"
|
||||||
|
|
||||||
|
.row
|
||||||
|
.span6
|
||||||
|
p
|
||||||
|
| If your page contains objectionable (adult) content, check this box. Any objectionable sites without this checkbox will be removed.
|
||||||
|
label.checkbox style="margin-bottom: 20px"
|
||||||
|
input name="is_nsfw" type="hidden" value="false"
|
||||||
|
input name="is_nsfw" type="checkbox" value="true" My page contains objectionable content
|
||||||
|
|
||||||
|
|
||||||
.row
|
.row
|
||||||
.span6
|
.span6
|
||||||
|
|
Loading…
Add table
Reference in a new issue