From 6045b6cb1880b27e8b21799b9501a794a5f5b88b Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sat, 5 Mar 2016 22:43:05 +0100 Subject: Customizing devise views and controllers --- app/views/layouts/application.html.haml | 5 +---- app/views/layouts/auth.html.haml | 10 ++++++++++ 2 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 app/views/layouts/auth.html.haml (limited to 'app/views/layouts') diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index f15217203..25b3b5b49 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -9,7 +9,4 @@ = yield :header_tags %body .container - = yield - .footer - Powered by - = link_to 'Mastodon', 'https://github.com/Gargron/mastodon', class: 'mastodon-link' + = content_for?(:content) ? yield(:content) : yield diff --git a/app/views/layouts/auth.html.haml b/app/views/layouts/auth.html.haml new file mode 100644 index 000000000..dd0e7f166 --- /dev/null +++ b/app/views/layouts/auth.html.haml @@ -0,0 +1,10 @@ +- content_for :content do + .logo-container + %h1 + Mastodon + %small= Rails.configuration.x.local_domain + + .form-container + = yield + += render template: "layouts/application" -- cgit