about summary refs log tree commit diff
path: root/lib/rook_web/templates/app/request.html.eex
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rook_web/templates/app/request.html.eex')
-rw-r--r--lib/rook_web/templates/app/request.html.eex8
1 files changed, 7 insertions, 1 deletions
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 %>
+  <p>
+    The share you tried to request either expired or never existed.
+  </p>
+<% end %>