diff options
author | Matthew Lemon <y@yulqen.org> | 2024-11-14 15:47:43 +0000 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-11-14 15:47:43 +0000 |
commit | 6427b28c60c6ed0dfd637307d1ab4ffe65c1144d (patch) | |
tree | 156d280b94557f9606c053f6187aec2a21eb1b36 /app/views/pdfresources/_pdfresource.html.erb | |
parent | 1b64b0b709c5704de48120e20bdfad32f34b0b5d (diff) |
Adds ResourceType model
Diffstat (limited to 'app/views/pdfresources/_pdfresource.html.erb')
-rw-r--r-- | app/views/pdfresources/_pdfresource.html.erb | 6 |
1 files changed, 5 insertions, 1 deletions
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 @@ </div> <p class="my-5"> - <strong class="block font-bold mb-2"><%= pdfresource.name %></strong> + <%= link_to pdfresource.name, pdfresource, class: "text-blue-500 font-bold" %> </p> <div class="px-6 pt-4 pb-2"> @@ -39,6 +39,10 @@ <% end %> </div> + <p class="my-5"> + <strong class="block font-medium mb-1">Resource type:</strong> + <%= pdfresource.resource_type&.name if pdfresource.respond_to?(:resource_type) %> + </p> <p class="my-5"> <strong class="block font-medium mb-1">Price:</strong> |