From c3058f579387d03b210f1d0800c9f01f4ae4513c Mon Sep 17 00:00:00 2001 From: "OHASHI, Norikazu" Date: Mon, 18 Feb 2019 19:00:04 +0900 Subject: [PATCH] =?utf8?q?=E3=83=AC=E3=82=A4=E3=82=A2=E3=82=A6=E3=83=88?= =?utf8?q?=E7=94=A8=E3=83=95=E3=82=A9=E3=83=BC=E3=83=9E=E3=83=83=E3=83=88?= =?utf8?q?=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- sinatra/app/controllers/web_gui.rb | 6 +++++- sinatra/app/views/layout.erb | 12 ++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 sinatra/app/views/layout.erb diff --git a/sinatra/app/controllers/web_gui.rb b/sinatra/app/controllers/web_gui.rb index 15b28c5..ce8bc08 100644 --- a/sinatra/app/controllers/web_gui.rb +++ b/sinatra/app/controllers/web_gui.rb @@ -25,9 +25,13 @@ class WebGui < Sinatra::Base end post '/login' do - # パスワード呼び出し + # パスワード認証呼び出し erb :user_home end + + get '/logout' do + # 最終ログイン情報登録 + erb :logout end diff --git a/sinatra/app/views/layout.erb b/sinatra/app/views/layout.erb new file mode 100644 index 0000000..dcb7a7e --- /dev/null +++ b/sinatra/app/views/layout.erb @@ -0,0 +1,12 @@ + + + + + <%= @username %> 書籍 + + + <%= yield %> +
+ 連絡先: support@neko-mori.org

+ + -- 2.19.2