about summary refs log tree commit diff
path: root/app/views/layouts
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-03-05 22:43:05 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-03-05 22:43:05 +0100
commit6045b6cb1880b27e8b21799b9501a794a5f5b88b (patch)
tree415169b028c44d15da6a4ddaf152175ff8f1fcc0 /app/views/layouts
parent7e93da3f8d31041034ba4eece5ee7a2cec5cfd2b (diff)
Customizing devise views and controllers
Diffstat (limited to 'app/views/layouts')
-rw-r--r--app/views/layouts/application.html.haml5
-rw-r--r--app/views/layouts/auth.html.haml10
2 files changed, 11 insertions, 4 deletions
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"