diff options
| author | Melonai <einebeere@gmail.com> | 2021-05-22 18:18:56 +0200 |
|---|---|---|
| committer | Melonai <einebeere@gmail.com> | 2021-05-22 18:18:56 +0200 |
| commit | e0cabfea7c7b442acd3636e7495958b87e253176 (patch) | |
| tree | 62e15eb61189c1da58265e37b4a8328a75017205 /lib/rook_web/templates | |
| parent | 0bd75cadf7164979cc06f001ecc057f6275a2e3b (diff) | |
| download | rook-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.eex | 8 |
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 %> |
