2014-11-02 08:55:16 -08:00
|
|
|
.panel.panel-default
|
|
|
|
.panel-heading
|
|
|
|
%h3.panel-title
|
|
|
|
Ask something!
|
|
|
|
.panel-body
|
|
|
|
#question-box.row
|
|
|
|
.row
|
|
|
|
.col-xs-12
|
2014-11-08 11:41:08 -08:00
|
|
|
%textarea.form-control{:name => "qb-question", :placeholder => "Type your question here…"}
|
2014-11-02 08:55:16 -08:00
|
|
|
.row{:style => "padding-top: 5px; padding-left: 5px; padding-right: 5px;"}
|
|
|
|
.col-xs-6
|
|
|
|
- if user_signed_in? # and @user.allow_anonymous
|
2014-11-08 11:41:08 -08:00
|
|
|
%input{:name => "qb-anonymous", :type => "checkbox"}/
|
2014-11-02 08:55:16 -08:00
|
|
|
Hide your name
|
|
|
|
%br/
|
|
|
|
.col-xs-6
|
|
|
|
%p.pull-right
|
2014-11-08 11:41:08 -08:00
|
|
|
%input{name: 'qb-to', type: 'hidden', :value => @user.id}/
|
|
|
|
%button.btn.btn-primary{name: 'qb-ask', 'data-loading-text' => "Asking...", "data-promote" => user_signed_in? ? "false" : "true", :type => "button"} Ask
|
2014-11-02 08:55:16 -08:00
|
|
|
- unless user_signed_in?
|
|
|
|
#question-box-promote.row{:style => "display: none;"}
|
|
|
|
.row
|
|
|
|
.col-xs-12
|
|
|
|
%strong Your question has been sent.
|
|
|
|
.row
|
|
|
|
.col-sm-1
|
|
|
|
.col-sm-5
|
|
|
|
%button#create-account.btn.btn-block.btn-primary Create an account
|
|
|
|
.col-sm-5
|
|
|
|
%button#new-question.btn.btn-block.btn-default Ask another question
|
|
|
|
.col-sm-1
|
|
|
|
.row
|
|
|
|
.col-sm-1
|
|
|
|
.col-xs-12.col-sm-10
|
2014-11-10 21:41:04 -08:00
|
|
|
%small
|
|
|
|
Join
|
|
|
|
= APP_CONFIG['site_name']
|
|
|
|
today! You'll be able to follow and ask people you know and a lot more.
|
2014-11-02 08:55:16 -08:00
|
|
|
.col-sm-1
|
|
|
|
/ %p
|
|
|
|
/ This user does not want to get asked by strangers. Why don't you
|
|
|
|
/ = succeed "?" do
|
|
|
|
/ %a{:href => "{{ url_for('register') }}"} sign up
|