mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 18:19:52 +01:00
Add share links to answerboxes
This commit is contained in:
parent
ed64a0990e
commit
fa37f5c857
1 changed files with 12 additions and 2 deletions
|
@ -16,8 +16,18 @@
|
|||
%button.btn.btn-link.answerbox__action{ type: :button, name: 'ab-comments', data: { a_id: a.id, state: :hidden } }
|
||||
%i.fa.fa-fw.fa-comments
|
||||
%span{ id: "ab-comment-count-#{a.id}" }= a.comment_count
|
||||
%button.btn.btn-link.answerbox__action{ type: :button, name: 'ab-share' }
|
||||
%i.fa.fa-fw.fa-share-alt{ title: 'Share' }
|
||||
.btn-group
|
||||
%button.btn.btn-link.answerbox__action{ data: { toggle: :dropdown }, aria: { expanded: false } }
|
||||
%i.fa.fa-fw.fa-share-alt{ title: 'Share' }
|
||||
.dropdown-menu.dropdown-menu-right{ role: :menu }
|
||||
%a.dropdown-item{ href: twitter_share_url(a) }
|
||||
%i.fa.fa-fw.fa-twitter
|
||||
Share on Twitter
|
||||
%a.dropdown-item{ href: tumblr_share_url(a) }
|
||||
%i.fa.fa-fw.fa-tumblr
|
||||
Share on Tumblr
|
||||
%a.dropdown-item{ href: '#', name: 'ab-share' }
|
||||
Share on other apps...
|
||||
- if user_signed_in?
|
||||
.btn-group
|
||||
%button.btn.btn-default.btn-sm.dropdown-toggle{ data: { toggle: :dropdown }, aria: { expanded: false } }
|
||||
|
|
Loading…
Reference in a new issue