diff options
| -rw-r--r-- | app/views/nodes/_link_cell.html.erb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/views/nodes/_link_cell.html.erb b/app/views/nodes/_link_cell.html.erb new file mode 100644 index 00000000..191d5841 --- /dev/null +++ b/app/views/nodes/_link_cell.html.erb | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | <%= link_to url, target: "_blank", rel: "noopener", | ||
| 2 | class: "link_icon_button", | ||
| 3 | "aria-label" => t("nodes.show.visit"), title: t("nodes.show.visit") do %> | ||
| 4 | <%= icon("external-link", library: "tabler", "aria-hidden": true) %> | ||
| 5 | <% end %> | ||
| 6 | <button type="button" class="link_icon_button copy_button" | ||
| 7 | data-copy-url="<%= url %>" | ||
| 8 | aria-label="<%= t("nodes.show.copy_url") %>" | ||
| 9 | title="<%= t("nodes.show.copy_url") %>"> | ||
| 10 | <%= icon("copy", library: "tabler", "aria-hidden": true) %> | ||
| 11 | <span class="copy_button_label"></span> | ||
| 12 | </button> | ||
