last minute tweaks for contact

This commit is contained in:
Kyle Drake 2013-07-13 16:49:39 +02:00
parent d7819fd25f
commit 5e4c54faf2
2 changed files with 4 additions and 4 deletions

4
app.rb
View file

@ -443,9 +443,9 @@ post '/contact' do
else
EmailWorker.perform_async({
from: 'web@neocities.org',
replyto: params[:email],
reply_to: params[:email],
to: 'contact@neocities.org',
subject: "[NeoCities] Contact: #{params[:subject]}",
subject: "[NeoCities Contact]: #{params[:subject]}",
body: params[:body]
})

View file

@ -3,7 +3,7 @@ javascript:
theme : 'clean'
};
- if !@errors.empty?
- if !@errors.nil? && !@errors.empty?
.row
.span8.offset2
.alert.alert-block.alert-error
@ -30,4 +30,4 @@ javascript:
== recaptcha_tag :challenge, ssl: true
div style="margin-top: 30px; margin-bottom: 50px"
input.btn.btn-large.btn-success type="submit" value="Send"
input.btn.btn-large.btn-success type="submit" value="Send"