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:
parent
b946bb5530
commit
4e297053ee
1 changed files with 1 additions and 0 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue