mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-22 07:57:47 +01:00
add inbox sidebar
This commit is contained in:
parent
46d8769b92
commit
8550760772
2 changed files with 24 additions and 21 deletions
20
app/views/inbox/_sidebar.html.haml
Normal file
20
app/views/inbox/_sidebar.html.haml
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
.panel.panel-default.inbox--panel
|
||||||
|
.panel-heading
|
||||||
|
%h3.panel-title Out of questions?
|
||||||
|
.panel-body
|
||||||
|
%button.btn.btn-block.btn-info{type: :button, id: 'ib-generate-question'} Get new question
|
||||||
|
.panel.panel-default.inbox--panel
|
||||||
|
.panel-heading
|
||||||
|
%h3.panel-title Share
|
||||||
|
.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)}"}
|
||||||
|
%i.fa.fa-twitter
|
||||||
|
Share on Twitter
|
||||||
|
%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"}
|
||||||
|
%i.fa.fa-tumblr
|
||||||
|
Share on Tumblr
|
||||||
|
.panel.panel-default.warning--panel
|
||||||
|
.panel-heading
|
||||||
|
%h3.panel-title Actions
|
||||||
|
.panel-body
|
||||||
|
%button.btn.btn-block.btn-danger{type: :button, id: 'ib-delete-all', disabled: (@inbox.empty? ? 'disabled' : nil), data: { ib_count: @inbox.count }} Delete all questions
|
|
@ -1,26 +1,7 @@
|
||||||
.container.j2-page
|
.container.j2-page
|
||||||
.row
|
.row
|
||||||
.col-md-3.col-xs-12.col-sm-3
|
.col-md-3.col-xs-12.col-sm-3.hidden-xs
|
||||||
.panel.panel-default.inbox--panel
|
= render 'inbox/sidebar'
|
||||||
.panel-heading
|
|
||||||
%h3.panel-title Out of questions?
|
|
||||||
.panel-body
|
|
||||||
%button.btn.btn-block.btn-info{type: :button, id: 'ib-generate-question'} Get new question
|
|
||||||
.panel.panel-default.inbox--panel
|
|
||||||
.panel-heading
|
|
||||||
%h3.panel-title Share
|
|
||||||
.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)}"}
|
|
||||||
%i.fa.fa-twitter
|
|
||||||
Share on Twitter
|
|
||||||
%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"}
|
|
||||||
%i.fa.fa-tumblr
|
|
||||||
Share on Tumblr
|
|
||||||
.panel.panel-default.warning--panel
|
|
||||||
.panel-heading
|
|
||||||
%h3.panel-title Actions
|
|
||||||
.panel-body
|
|
||||||
%button.btn.btn-block.btn-danger{type: :button, id: 'ib-delete-all', disabled: (@inbox.empty? ? 'disabled' : nil), data: { ib_count: @inbox.count }} Delete all questions
|
|
||||||
.col-md-9.col-xs-12.col-sm-9
|
.col-md-9.col-xs-12.col-sm-9
|
||||||
= render 'layouts/messages'
|
= render 'layouts/messages'
|
||||||
#entries
|
#entries
|
||||||
|
@ -30,6 +11,8 @@
|
||||||
- if @inbox.empty?
|
- if @inbox.empty?
|
||||||
|
|
||||||
Nothing to see here.
|
Nothing to see here.
|
||||||
|
.col-md-9.col-xs-12.col-sm-9.visible-xs
|
||||||
|
= render 'inbox/sidebar'
|
||||||
|
|
||||||
= render "shared/links"
|
= render "shared/links"
|
||||||
- @inbox.update_all(new: false)
|
- @inbox.update_all(new: false)
|
Loading…
Reference in a new issue