Feature/share to linkedin (#624)

* Fixed the overflowing user name in the top bar under profile thumbnail

* Fixed by adding hidden and ellipsis

* Added the share to linkedin for sharing articles on LinkedIn

* Changed the summary param to article.description
This commit is contained in:
Gaurav Shankar 2018-09-12 03:11:15 +05:30 committed by Ben Halpern
parent b946bb5530
commit 4e297053ee

View file

@ -24,6 +24,7 @@
<img src="<%= asset_path("link.svg") %>" /><input value="https://dev.to<%= @article.path %>" onClick="this.setSelectionRange(0, this.value.length)"/>
</div>
<div class="dropdown-link-row"><a href='https://twitter.com/intent/tweet?text="<%= @article.title %>" by <%= @article.user.twitter_username ? "@" + @article.user.twitter_username : @article.user.name %> https://dev.to<%= @article.path %>'>Share to Twitter</a></div>
<div class="dropdown-link-row"><a href='https://www.linkedin.com/shareArticle?mini=true&url=https://dev.to<%=@article.path%>&title=<%=@article.title%>&summary=<%=@article.description%>&source=dev.to'>Share to LinkedIn</a></div>
<div class="dropdown-link-row"><a href="/report-abuse">Report Abuse</a></div>
</div>
</div>