diff options
Diffstat (limited to 'app/views/activities')
-rw-r--r-- | app/views/activities/_costs_and_requirements.html.erb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/views/activities/_costs_and_requirements.html.erb b/app/views/activities/_costs_and_requirements.html.erb new file mode 100644 index 0000000..6ae66bb --- /dev/null +++ b/app/views/activities/_costs_and_requirements.html.erb @@ -0,0 +1,5 @@ +<div class="text-sm border border-2 border-gray-700 rounded p-2 w-full"> + <%= @text %> + <p>Costs:<strong> <%= @activity.costs&.join(", ") || "None" %></strong> </p> + <p>Requires:<strong> <%= @activity.requirements&.join(", ") || "None" %></strong> </p> +</div> |