Retrospring/app/views/inbox/_sidebar.haml

28 lines
1.3 KiB
Plaintext
Raw Normal View History

2020-05-10 04:21:41 -07:00
.card
2022-04-19 13:32:26 -07:00
.card-header= t(".questions.heading")
2020-05-10 04:21:41 -07:00
.card-body
2022-04-19 13:32:26 -07:00
%button.btn.btn-block.btn-info{ type: :button, id: "ib-generate-question" }= t(".questions.button")
2020-05-10 04:21:41 -07:00
.card
2022-04-19 13:32:26 -07:00
.card-header= t(".share.heading")
2020-05-10 04:21:41 -07:00
.card-body
2022-04-19 13:32:26 -07:00
%a.btn.btn-block.btn-primary{ target: "_blank",
2020-05-10 04:21:41 -07:00
href: "https://twitter.com/intent/tweet?text=Ask%20me%20anything%21&url=#{show_user_profile_url(current_user.screen_name)}" }
%i.fa.fa-fw.fa-twitter
2022-04-19 13:32:26 -07:00
= t(".share.button", service: "Twitter")
%a.btn.btn-block.btn-primary{ target: "_blank",
2020-05-10 04:21:41 -07:00
href: "https://www.tumblr.com/share/link?url=#{show_user_profile_url(current_user.screen_name)}&name=Ask%20me%20anything%21" }
%i.fa.fa-fw.fa-tumblr
2022-04-19 13:32:26 -07:00
= t(".share.button", service: "Tumblr")
2020-05-10 04:21:41 -07:00
.card
2022-04-19 13:32:26 -07:00
.card-header= t(".author.heading")
2020-05-10 04:21:41 -07:00
.card-body
%form#author-form
= bootstrap_form_tag url: inbox_path, method: :get do |f|
2022-04-19 13:32:26 -07:00
= f.text_field :author, value: params[:author], placeholder: t(".author.placeholder"), prepend: "@", hide_label: true
= f.button t(".author.button"), name: nil, class: "btn btn-light btn-block btn-sm", id: "ib-author"
2020-05-10 04:21:41 -07:00
.card
2022-04-19 13:32:26 -07:00
.card-header= t(".actions.heading")
2020-05-10 04:21:41 -07:00
.card-body
2020-05-10 13:27:39 -07:00
%button.btn.btn-block.btn-danger{ type: :button, id: delete_id, disabled: (disabled ? :disabled : nil), data: { ib_count: inbox_count } }
2022-04-19 13:32:26 -07:00
= t(".actions.delete")