nsfw flag

This commit is contained in:
Kyle Drake 2013-06-23 21:59:56 -07:00
parent d661711204
commit 3c2d97046d
2 changed files with 9 additions and 1 deletions

2
app.rb
View file

@ -54,7 +54,7 @@ end
post '/create' do
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?

View file

@ -58,6 +58,14 @@ javascript:
.span6
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
.span6