diff options
author | Paul Duncan <pabs@pablotron.org> | 2016-05-21 05:29:53 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2016-05-21 05:29:53 -0400 |
commit | 62e6a47fb6cfea6d295e601c9c156b063ad8251e (patch) | |
tree | 788cc92063692f54c10f002c2bba6bccadb11344 /src | |
parent | 1988056df3bb929c9e34fe7f6c6e32210abf6da4 (diff) | |
download | guff-62e6a47fb6cfea6d295e601c9c156b063ad8251e.tar.bz2 guff-62e6a47fb6cfea6d295e601c9c156b063ad8251e.zip |
add logout-page.ecr
Diffstat (limited to 'src')
-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> |