From ecde507b60770c9233e0ece322641f85fc0f1e3e Mon Sep 17 00:00:00 2001 From: Emi Matchu Date: Tue, 21 May 2024 18:57:32 -0700 Subject: [PATCH] Add item page links to Item Getting Guide table rows Just a simple one! Clicking the item image or name takes you to the DTI item page for it now! --- app/assets/stylesheets/items/sources.sass | 5 +++++ app/views/items/_item_list_row.html.haml | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/app/assets/stylesheets/items/sources.sass b/app/assets/stylesheets/items/sources.sass index b4b1d5a1..ad47016f 100644 --- a/app/assets/stylesheets/items/sources.sass +++ b/app/assets/stylesheets/items/sources.sass @@ -27,6 +27,11 @@ padding-left: 1em font-size: 85% + .name-cell a + text-decoration: none + &:hover + text-decoration: underline + thead background: $module-bg-color diff --git a/app/views/items/_item_list_row.html.haml b/app/views/items/_item_list_row.html.haml index 6cf4f321..4a957455 100644 --- a/app/views/items/_item_list_row.html.haml +++ b/app/views/items/_item_list_row.html.haml @@ -1,4 +1,4 @@ %tr - %td.thumbnail-cell= item_thumbnail_for(item) - %td= item.name + %td.thumbnail-cell= link_to item_thumbnail_for(item), item, target: "_blank" + %td.name-cell= link_to item.name, item, target: "_blank" %td.actions-cell= yield