From e0cabfea7c7b442acd3636e7495958b87e253176 Mon Sep 17 00:00:00 2001 From: Melonai Date: Sat, 22 May 2021 18:18:56 +0200 Subject: Request and Share communication --- lib/rook_web/templates/app/request.html.eex | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lib/rook_web/templates') diff --git a/lib/rook_web/templates/app/request.html.eex b/lib/rook_web/templates/app/request.html.eex index b7ff7bd..1e17e45 100644 --- a/lib/rook_web/templates/app/request.html.eex +++ b/lib/rook_web/templates/app/request.html.eex @@ -1 +1,7 @@ -<%= render_app(@conn, "request") %> +<%= if Rook.Share.exists?(@share_token) do %> + <%= render_app(@conn, "request") %> +<% else %> +

+ The share you tried to request either expired or never existed. +

+<% end %> -- cgit 1.4.1