From 0f1cc9b2bc1a5b24a6d64c783519558395af74ce Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Thu, 28 Jul 2022 17:13:54 +0300 Subject: feat(predlozhnik): monetize might as well! if it manages to pay for a beer over the lifetime of the site, it will have been worth it. Change-Id: I31ba92ffd4d6e55687f5ee624c44d14d366d0e91 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5990 Tested-by: BuildkiteCI Reviewed-by: tazjin --- users/tazjin/predlozhnik/src/main.rs | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) (limited to 'users/tazjin/predlozhnik/src/main.rs') diff --git a/users/tazjin/predlozhnik/src/main.rs b/users/tazjin/predlozhnik/src/main.rs index 1d864a37b945..4f3d7fc605ca 100644 --- a/users/tazjin/predlozhnik/src/main.rs +++ b/users/tazjin/predlozhnik/src/main.rs @@ -248,10 +248,7 @@ impl Component for Модель { .map(|п| покажи_падеж(link, self, &вв, *п)) .collect::(); - let объяснение = вв - .объяснение - .map(|exp| exp) - .unwrap_or_else(|| html! {}); + let объяснение = вв.объяснение.map(|exp| exp).unwrap_or_else(|| html! {}); let footer = html! {
@@ -264,6 +261,22 @@ impl Component for Модель {
}; + let код_рекламы = r#" +window.yaContextCb.push(()=>{ + Ya.Context.AdvManager.render({ + renderTo: 'yandex_rtb_R-A-1773485-1', + blockId: 'R-A-1773485-1' + }) +}) +"#; + + let реклама = html! { + + }; + html! { <>