about summary refs log tree commit diff
path: root/lib/rook_web/templates
diff options
context:
space:
mode:
authorMelonai <einebeere@gmail.com>2021-05-22 18:18:56 +0200
committerMelonai <einebeere@gmail.com>2021-05-22 18:18:56 +0200
commite0cabfea7c7b442acd3636e7495958b87e253176 (patch)
tree62e15eb61189c1da58265e37b4a8328a75017205 /lib/rook_web/templates
parent0bd75cadf7164979cc06f001ecc057f6275a2e3b (diff)
downloadrook-e0cabfea7c7b442acd3636e7495958b87e253176.tar.zst
rook-e0cabfea7c7b442acd3636e7495958b87e253176.zip
Request and Share communication
Diffstat (limited to 'lib/rook_web/templates')
-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 %>