From ab0c5f9bfabacbf737cec3fb5796ce66dd37d877 Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Sat, 17 Dec 2016 16:00:26 -0800 Subject: show logged-in user on editor fixes #9 --- controllers/editor.php | 4 +++- public/editor-files/style.css | 2 +- views/editor.php | 18 +++++++----------- views/layout.php | 2 +- 4 files changed, 12 insertions(+), 14 deletions(-) diff --git a/controllers/editor.php b/controllers/editor.php index c880a00..3818328 100644 --- a/controllers/editor.php +++ b/controllers/editor.php @@ -2,7 +2,9 @@ $app->get('/editor', function() use($app) { if($user=require_login($app)) { - $html = $app->render('editor.php'); + $html = $app->render('editor.php', [ + 'user' => $user + ]); $app->response()->body($html); } }); diff --git a/public/editor-files/style.css b/public/editor-files/style.css index e5b14b5..9bb8042 100644 --- a/public/editor-files/style.css +++ b/public/editor-files/style.css @@ -75,7 +75,7 @@ img { border: 0; } .toolbar-left .logo { vertical-align: middle; } -#draft-status { +.toolbar .item.text { color: #aaa; font-family: sans-serif; font-size: 16px; diff --git a/views/editor.php b/views/editor.php index 44b2987..78b1858 100644 --- a/views/editor.php +++ b/views/editor.php @@ -3,8 +3,8 @@ Quill Editor - - + +