From a7a99a639931004e151a1dec45c8d8e6a4661770 Mon Sep 17 00:00:00 2001 From: Leo Wilkin Date: Mon, 6 Jan 2025 18:25:55 +0000 Subject: [PATCH] more admin functions (#16) * add a favicon! * add admin card and send email button * Update main.rb to allow for email sending * add user information to both public and internal! * let's else that --------- Co-authored-by: nora <163450896+24c02@users.noreply.github.com> --- app/views/shipments.erb | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/app/views/shipments.erb b/app/views/shipments.erb index a202fa5..2911db1 100644 --- a/app/views/shipments.erb +++ b/app/views/shipments.erb @@ -2,6 +2,21 @@ <% end %>
+ <% if @internal %> +
+ +

Viewing shipments for: <%= params[:email] %>

+
+ + +
+
+ <% else %> +
+ You're signed in as <%= params[:email] %> 👋🏻 + +
+ <% end %> <% if @shipments.empty? %> no shipments? <% else %> @@ -26,4 +41,4 @@ 700: 1, } }); - \ No newline at end of file +