diff --git a/fotostore.pl b/fotostore.pl
index d8dc0d5..f4f0760 100755
--- a/fotostore.pl
+++ b/fotostore.pl
@@ -78,7 +78,7 @@ get '/logout' => sub {
my $self = shift;
$self->logout();
- $self->render( text => 'bye' );
+ $self->render( message => 'bye' );
};
get '/register' => ( authenticated => 0 ) => sub {
diff --git a/templates/index.html.ep b/templates/index.html.ep
index d15117b..289227e 100644
--- a/templates/index.html.ep
+++ b/templates/index.html.ep
@@ -1,17 +1,9 @@
% layout 'base';
-
Rough, Slow, Stupid, Contrary Photohosting
<% if (is_user_authenticated()) { %>
%= include 'includes/images_list'
<% } else { %>
-
-
-
-
+ Please login to access your images
<% } %>
diff --git a/templates/layouts/base.html.ep b/templates/layouts/base.html.ep
index aca3d9d..a3c18a5 100644
--- a/templates/layouts/base.html.ep
+++ b/templates/layouts/base.html.ep
@@ -24,7 +24,37 @@
- <%= content %>
+
+
+
+
+ <% if (!is_user_authenticated()) { %>
+
+ <% } else { %>
+
+ <% } %>
+
+
+
+
+ <%= content %>
+