From 484e63f7eeecd26f8681f82c18b37172d0117c30 Mon Sep 17 00:00:00 2001 From: Guillaume Dott Date: Fri, 13 Nov 2015 12:29:59 +0100 Subject: [PATCH] Add proper title to pages --- lib/librarix/views/index.slim | 3 ++- lib/librarix/views/layout.slim | 4 +++- lib/librarix/views/search.slim | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/librarix/views/index.slim b/lib/librarix/views/index.slim index 273c51a..c3a524f 100644 --- a/lib/librarix/views/index.slim +++ b/lib/librarix/views/index.slim @@ -1,4 +1,5 @@ -- content_for(:title) { 'Index' } +- content_for :title do + | Movies form method="get" action="/" id="filter" div id="search-main" diff --git a/lib/librarix/views/layout.slim b/lib/librarix/views/layout.slim index eac0514..7bc6866 100644 --- a/lib/librarix/views/layout.slim +++ b/lib/librarix/views/layout.slim @@ -1,7 +1,9 @@ doctype html html head - title = yield_content :title + title + = yield_content :title + | - Librarix meta charset="utf-8" meta name="viewport" content="initial-scale=1.0, user-scalable=yes" link rel="stylesheet" media="all" href="/application.css" diff --git a/lib/librarix/views/search.slim b/lib/librarix/views/search.slim index 43d94d5..71a372f 100644 --- a/lib/librarix/views/search.slim +++ b/lib/librarix/views/search.slim @@ -1,4 +1,5 @@ -- content_for(:title) { 'Search' } +- content_for :title do + | Search form method="get" action="/search" id="search" div id="search-main"