From 6427b28c60c6ed0dfd637307d1ab4ffe65c1144d Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Thu, 14 Nov 2024 15:47:43 +0000 Subject: Adds ResourceType model --- app/views/pdfresources/_pdfresource.html.erb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'app/views/pdfresources/_pdfresource.html.erb') diff --git a/app/views/pdfresources/_pdfresource.html.erb b/app/views/pdfresources/_pdfresource.html.erb index 12b2b58..8c96080 100644 --- a/app/views/pdfresources/_pdfresource.html.erb +++ b/app/views/pdfresources/_pdfresource.html.erb @@ -4,7 +4,7 @@

- <%= pdfresource.name %> + <%= link_to pdfresource.name, pdfresource, class: "text-blue-500 font-bold" %>

@@ -39,6 +39,10 @@ <% end %>
+

+ Resource type: + <%= pdfresource.resource_type&.name if pdfresource.respond_to?(:resource_type) %> +

Price: -- cgit v1.2.3