diff --git a/www/application/controllers/User_Tweets.php b/www/application/controllers/User_Tweets.php index 168f379..dbfdc30 100644 --- a/www/application/controllers/User_Tweets.php +++ b/www/application/controllers/User_Tweets.php @@ -39,4 +39,10 @@ class User_Tweets extends CI_Controller { } + public function logout(){ + $this->load->helper('url'); + $this->session->sess_destroy(); + redirect("/login"); + } + } diff --git a/www/application/views/templates/nav.php b/www/application/views/templates/nav.php index c728335..34f7de3 100644 --- a/www/application/views/templates/nav.php +++ b/www/application/views/templates/nav.php @@ -8,5 +8,9 @@ +
+ +
diff --git a/www/css/styles.css b/www/css/styles.css index aaa6c22..4bf73ec 100644 --- a/www/css/styles.css +++ b/www/css/styles.css @@ -40,6 +40,12 @@ img.icon.reg { margin:0 auto; } +form.logout.form-inline.my-2.my-lg-0 { + float: right; + margin-top: 6.5px; + margin-right: 4em; +} + .user-content{ background-color:#ffffff; border-radius: 4px;