From 62e6a47fb6cfea6d295e601c9c156b063ad8251e Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Sat, 21 May 2016 05:29:53 -0400 Subject: add logout-page.ecr --- src/guff.cr | 1 - src/views/logout-page.ecr | 50 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 src/views/logout-page.ecr diff --git a/src/guff.cr b/src/guff.cr index b5c3d44..64c212e 100644 --- a/src/guff.cr +++ b/src/guff.cr @@ -615,7 +615,6 @@ module Guff class LogoutPageHandler < Handler PATH_RE = %r{^/guff/logout.html$} - VALID_METHODS = %w{GET} def call(context : HTTP::Server::Context) if context.request.method == "GET" && diff --git a/src/views/logout-page.ecr b/src/views/logout-page.ecr new file mode 100644 index 0000000..61fa505 --- /dev/null +++ b/src/views/logout-page.ecr @@ -0,0 +1,50 @@ + + + + + Guff Logout + + <%= + styles %w{ + assets/font-awesome-4.5.0/css/font-awesome.min.css + assets/bootstrap-3.3.6/css/bootstrap.min.css + assets/bootstrap-3.3.6/css/bootstrap-theme.min.css + } + %> + + + +
+
+
+
+ + + Guff Logout + +
+ +
+

+ You have logged out. +

+ +

+ Go to Login page +

+
+
+
+
+ + + <%= + scripts %w{ + assets/jquery-2.2.1.min.js + assets/bootstrap-3.3.6/js/bootstrap.min.js + } + %> + -- cgit v1.2.3