aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/pdfresources/show.html.erb
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-11-14 12:01:49 +0000
committerMatthew Lemon <y@yulqen.org>2024-11-14 12:01:49 +0000
commit1b64b0b709c5704de48120e20bdfad32f34b0b5d (patch)
tree8cbb68c52a79d9cf12dfd861fee5fc3d0ac74b99 /app/views/pdfresources/show.html.erb
parent06222c54c248a03d0b019db12bc365ab187e317a (diff)
Adds credits and cleaner handling of page count using ruby
Diffstat (limited to 'app/views/pdfresources/show.html.erb')
-rw-r--r--app/views/pdfresources/show.html.erb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/views/pdfresources/show.html.erb b/app/views/pdfresources/show.html.erb
index 525e5dd..dc6dcd7 100644
--- a/app/views/pdfresources/show.html.erb
+++ b/app/views/pdfresources/show.html.erb
@@ -22,6 +22,9 @@
<div class="text-2xl font-bold mb-6">
£<%= number_with_precision(@pdfresource.price || 0.00, precision: 2) %>
+ <% if @pdfresource.credits %>
+ (or <%= @pdfresource.credits %> credit<%= 's' if @pdfresource.credits != 1 %>)
+ <% end %>
</div>
<div class="mb-8">