Retrospring/app/views/inbox/_actions.html.haml

24 lines
1.5 KiB
Plaintext
Raw Normal View History

2022-10-16 07:16:12 -07:00
.card.inbox-actions
.card-body
.d-md-flex
= bootstrap_form_tag url: inbox_path, method: :get, html: { class: "d-block" } do |f|
2023-01-04 03:59:05 -08:00
= f.text_field :author, value: params[:author], placeholder: t(".author.placeholder"), prepend: "@", hide_label: true, wrapper: { class: "" },
2022-10-16 07:16:12 -07:00
append: f.button(t(".author.button"), name: nil, class: "btn btn-light", id: "ib-author")
2023-01-04 02:00:45 -08:00
.d-flex.ms-auto.mt-2.mt-md-0
= button_to inbox_create_path, class: "btn btn-info me-auto" do
2022-10-16 07:16:12 -07:00
= t(".questions.button")
2023-01-04 02:00:45 -08:00
.button-group.ms-1
%button.btn.btn-default{ title: t(".share.heading"), data: { bs_toggle: :dropdown }, aria: { expanded: false } }
2022-10-16 07:16:12 -07:00
%i.fa.fa-fw.fa-share-alt
%span.visually-hidden= t(".share.heading")
2023-01-04 03:40:19 -08:00
.dropdown-menu.dropdown-menu-end{ role: :menu }
2022-10-16 07:16:12 -07:00
%a.dropdown-item{ href: "https://twitter.com/intent/tweet?text=Ask%20me%20anything%21&url=#{user_url(current_user)}", target: "_blank" }
%i.fa.fa-fw.fa-twitter
= t(".share.button", service: "Twitter")
%a.dropdown-item{ href: "https://www.tumblr.com/share/link?url=#{user_url(current_user)}&name=Ask%20me%20anything%21", target: "_blank" }
%i.fa.fa-fw.fa-tumblr
= t(".share.button", service: "Tumblr")
2023-01-04 02:00:45 -08:00
%button.btn.btn-danger.ms-1{ type: :button, title: t(".actions.delete"), id: delete_id, disabled: (disabled ? :disabled : nil), data: { ib_count: inbox_count } }
2022-10-16 07:16:12 -07:00
%i.fa.fa-fw.fa-trash-o
%span.visually-hidden= t(".actions.delete")