comments, forum posts: add 'Copy Link' action to '...' menu.
Add a 'Copy Link' action to forum posts and comments. This copies the full link to the clipboard. The 'Copy ID' action copies just the DText shortlink (comment #XXX or forum #XXX).
This commit is contained in:
@@ -132,9 +132,15 @@
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
<% menu.item do %>
|
||||
<%= link_to comment_path(comment.id), class: "comment-copy-id" do %>
|
||||
<%= hashtag_icon %> Copy ID
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
<% menu.item do %>
|
||||
<%= link_to comment_path(comment.id), class: "comment-copy-link" do %>
|
||||
<%= link_icon %> Copy ID
|
||||
<%= link_icon %> Copy Link
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user