Skip to content
This repository has been archived by the owner on May 16, 2019. It is now read-only.

Add share buttons using Duo Search #1849

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion js/templates/item.html
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,19 @@ <h4><%= polyglot.t('CanBeShippedTo') %></h4>
</div>
</div>

<div class="flexRow border0">
<div lass="flexCol-12">
<div id="shareBar" class="marginLeft20">
Share via <a href="https://duosear.ch">Duo Search</a>:
<a class="marginRight10 marginLeft10" title="Twitter" href="https://twitter.com/intent/tweet?text=<%= ob.vendor_offer.listing.item.title %>&via=duosearch&hashtags=OpenBazaar&url=https://duosear.ch/<%= ob.vendor_offer.listing.id.blockchain_id || ob.vendor_offer.listing.id.guid %>/listing/<%= ob.itemHash %>"><span class="ion-social-twitter"></span></a>
<a class="marginRight10" title="Facebook" href="https://www.facebook.com/sharer/sharer.php?u=https://duosear.ch/<%= ob.vendor_offer.listing.id.blockchain_id || ob.vendor_offer.listing.id.guid %>/listing/<%= ob.itemHash %>"><span class="ion-social-facebook"></span></a>
<a class="marginRight10" title="Reddit" href="https://www.reddit.com/submit?url=https://duosear.ch/<%= ob.vendor_offer.listing.id.blockchain_id || ob.vendor_offer.listing.id.guid %>/listing/<%= ob.itemHash %>"><span class="ion-social-reddit"></span></a>

</div>
</div>
</div>


<div class="flexRow border0">
<div class="flexCol-12">
<div class="custCol-border marginBottom40 marginTop30">
Expand Down Expand Up @@ -269,4 +282,3 @@ <h4 class="txt-center row20 fontSize14 textOpacity75"><%= polyglot.t('NoDetailsS
</div>
</div>
</div>