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

21 lines
1.3 KiB
Plaintext
Raw Normal View History

2015-02-07 15:59:07 -08:00
.panel.panel-default.inbox--panel
.panel-heading
2015-06-06 15:24:27 -07:00
%h3.panel-title= t 'views.inbox.sidebar.questions.title'
2015-02-07 15:59:07 -08:00
.panel-body
2015-06-06 15:24:27 -07:00
%button.btn.btn-block.btn-info{type: :button, id: 'ib-generate-question'}= t 'views.inbox.sidebar.questions.button'
2015-02-07 17:54:57 -08:00
.panel.panel-default.inbox--panel
.panel-heading
2015-06-06 15:24:27 -07:00
%h3.panel-title= t 'views.inbox.sidebar.share.title'
2015-02-07 17:54:57 -08:00
.panel-body
%a.btn.btn-block.btn-primary{target: '_blank', href: "https://twitter.com/intent/tweet?text=Ask%20me%20anything%21&url=#{show_user_profile_url(current_user.screen_name)}"}
2015-06-06 15:24:27 -07:00
%i.fa.fa-fw.fa-twitter
= raw t('views.inbox.sidebar.share.button', service: "Twitter")
2015-02-07 17:54:57 -08:00
%a.btn.btn-block.btn-primary{target: '_blank', href: "http://www.tumblr.com/share/link?url=#{show_user_profile_url(current_user.screen_name)}&name=Ask%20me%20anything%21"}
2015-06-06 15:24:27 -07:00
%i.fa.fa-fw.fa-tumblr
= raw t('views.inbox.sidebar.share.button', service: "Tumblr")
2015-02-07 17:54:57 -08:00
.panel.panel-default.warning--panel
.panel-heading
2015-06-06 15:24:27 -07:00
%h3.panel-title= t 'views.inbox.sidebar.actions.title'
2015-02-07 17:54:57 -08:00
.panel-body
2015-06-06 15:24:27 -07:00
%button.btn.btn-block.btn-danger{type: :button, id: 'ib-delete-all', disabled: (Inbox.where(user: current_user).empty? ? 'disabled' : nil), data: { ib_count: Inbox.where(user: current_user).count }}= t 'views.inbox.sidebar.actions.button'