diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-30 23:23:30 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-30 23:23:30 +0200 |
| commit | 22539dff8d36279002bc9694a8433fef784869e1 (patch) | |
| tree | 900912731c64fb5136094423d58af383c89a634b /app/views/nodes | |
| parent | fd1ef782f7fc85db740fcb2ac1f859725e7280c5 (diff) | |
Provide link cells for the i18n matrix
Diffstat (limited to 'app/views/nodes')
| -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> | ||
