From 61bd506af0d2f5fc38407bc8d09abf132ba61a21 Mon Sep 17 00:00:00 2001 From: Denis Fedoseev Date: Wed, 19 Jul 2017 12:46:58 +0900 Subject: [PATCH] Don't show images if user is not logged in. --- fotostore.pl | 57 ++++++++++++++++++++++++++++++++++------------------ 1 file changed, 38 insertions(+), 19 deletions(-) diff --git a/fotostore.pl b/fotostore.pl index 647480f..7b498c9 100644 --- a/fotostore.pl +++ b/fotostore.pl @@ -212,6 +212,24 @@ __DATA__ +@@ no_logged.html.ep + + + + Rough, Slow, Stupid, Contrary Photohosting + + +

Rough, Slow, Stupid, Contrary Photohosting

+
+
+ + + +
+
+ + + @@ index.html.ep @@ -221,25 +239,16 @@ __DATA__

Rough, Slow, Stupid, Contrary Photohosting

<% if (is_user_authenticated()) { %> -
Logout
-
-
-
- File name - - -
-
- <% } else { %> -
-
- - - -
-
- <% } %> -
+
Logout
+
+
+
+ File name + + +
+
+
<% foreach my $image (@$images) { %>

@@ -255,5 +264,15 @@ __DATA__
<% } %>
+ <% } else { %> +
+
+ + + +
+
+ <% } %> +