From 4ffd85ade067d158c4ae1492ef087f1338f844c1 Mon Sep 17 00:00:00 2001 From: Matchu Date: Mon, 6 Nov 2023 12:12:25 -0800 Subject: [PATCH] Add mini-survey announcement MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Just sharing this out to gather info, since this might be coming kinda soon! I also moved the announcement higher up in the template, because it gets broken on the user lists page which uses floats quite a bit for the site header—and tbh I feel like this is better anyway lol. --- app/views/layouts/application.html.haml | 2 +- app/views/static/_announcement.html | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 751ac17a..4d2765f5 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -22,9 +22,9 @@ %body{:class => body_class} #container = yield :before_title + = render 'static/announcement' - if content_for?(:title) && show_title_header? %h1#title= yield :title - = render 'static/announcement' = yield :before_flashes = flashes diff --git a/app/views/static/_announcement.html b/app/views/static/_announcement.html index e69de29b..5cb28053 100644 --- a/app/views/static/_announcement.html +++ b/app/views/static/_announcement.html @@ -0,0 +1,10 @@ +
+ đź’ˇ Mini-survey time!
+ We might get to share some thoughts with TNT soon—what do you want to make + sure they hear? + + Fill it out → + +