diff options
-rw-r--r-- | src/guff.cr | 1 | ||||
-rw-r--r-- | src/views/logout-page.ecr | 50 |
2 files changed, 50 insertions, 1 deletions
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 @@ +<!DOCTYPE html> +<html lang='en-US'> + <head> + <meta charset="utf-8"/> + <title>Guff Logout</title> + + <%= + 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 + } + %> + </head> + + <body> + <div class='container'> + <div class='col-md-6 col-md-offset-3'> + <div class='panel panel-default'> + <div class='panel-heading'> + <b> + <i class='fa fa-exit'></i> + Guff Logout + </b> + </div><!-- panel-heading --> + + <div class='panel-body'> + <p> + You have logged out. + </p> + + <p> + <a + href='login.html' + title='Go to login page.' + >Go to Login page</a> + </p> + </div><!-- panel-body --> + </div><!-- panel --> + </div><!-- col-md-4 --> + </div><!-- container --> + </body> + + <%= + scripts %w{ + assets/jquery-2.2.1.min.js + assets/bootstrap-3.3.6/js/bootstrap.min.js + } + %> +</html> |