From 82693daa3d073805d4beb80e052b0630496387a0 Mon Sep 17 00:00:00 2001
From: Neil Lalonde <neillalonde@gmail.com>
Date: Thu, 19 Jun 2014 17:32:26 -0400
Subject: [PATCH] Put the 'Powered by Discourse...' message shown to crawlers
 and no-js visitors in a footer element so that SEO something something.

---
 app/views/categories/index.html.erb    | 4 +---
 app/views/layouts/application.html.erb | 3 +++
 app/views/layouts/crawler.html.erb     | 3 +++
 app/views/layouts/no_js.html.erb       | 2 +-
 app/views/list/list.erb                | 2 --
 app/views/list/top.erb                 | 1 -
 app/views/topics/show.html.erb         | 2 --
 app/views/users/show.html.erb          | 2 --
 8 files changed, 8 insertions(+), 11 deletions(-)

diff --git a/app/views/categories/index.html.erb b/app/views/categories/index.html.erb
index 1818e4d06..176da7712 100644
--- a/app/views/categories/index.html.erb
+++ b/app/views/categories/index.html.erb
@@ -9,6 +9,4 @@
       <%- end %>
     </div>
   </div>
-<% end %>
-
-<p><%= t 'powered_by_html' %></p>
\ No newline at end of file
+<% end %>
\ No newline at end of file
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb
index eab4ec5bc..e5668394a 100644
--- a/app/views/layouts/application.html.erb
+++ b/app/views/layouts/application.html.erb
@@ -54,6 +54,9 @@
         <%= yield %>
         <!-- :preload-content -->
       </div>
+      <footer id='bottom' class="container">
+        <p><%= t 'powered_by_html' %></p>
+      </footer>
     </noscript>
 
     <!--[if IE 9]><script type="text/javascript">ie = "new";</script><![endif]-->
diff --git a/app/views/layouts/crawler.html.erb b/app/views/layouts/crawler.html.erb
index db93fa15d..c1c4475f0 100644
--- a/app/views/layouts/crawler.html.erb
+++ b/app/views/layouts/crawler.html.erb
@@ -38,5 +38,8 @@
       <%= yield %>
       <!-- :preload-content -->
     </div>
+    <footer id='bottom' class="container">
+      <p><%= t 'powered_by_html' %></p>
+    </footer>
   </body>
 </html>
diff --git a/app/views/layouts/no_js.html.erb b/app/views/layouts/no_js.html.erb
index 623d6e520..bb9a232d7 100644
--- a/app/views/layouts/no_js.html.erb
+++ b/app/views/layouts/no_js.html.erb
@@ -37,7 +37,7 @@
         <%= yield %>
       </div>
     </section>
-    <footer id='bottom'>
+    <footer id='bottom' class="container">
     </footer>
   </body>
 </html>
diff --git a/app/views/list/list.erb b/app/views/list/list.erb
index df9267ab9..a1f741be4 100644
--- a/app/views/list/list.erb
+++ b/app/views/list/list.erb
@@ -18,8 +18,6 @@
   </p>
 <% end %>
 
-<p><%= t 'powered_by_html' %></p>
-
 <% if @rss %>
   <% content_for :head do %>
     <%= auto_discovery_link_tag(:rss, {action: "#{@rss}_feed"}, title: I18n.t("rss_description.#{@rss}")) %>
diff --git a/app/views/list/top.erb b/app/views/list/top.erb
index 7c3de69f1..e69de29bb 100644
--- a/app/views/list/top.erb
+++ b/app/views/list/top.erb
@@ -1 +0,0 @@
-<p><%= t 'powered_by_html' %></p>
diff --git a/app/views/topics/show.html.erb b/app/views/topics/show.html.erb
index 30020d803..db9a68879 100644
--- a/app/views/topics/show.html.erb
+++ b/app/views/topics/show.html.erb
@@ -33,8 +33,6 @@
 </p>
 
 
-<p><%= t 'powered_by_html' %></p>
-
 <% content_for :head do %>
   <%= auto_discovery_link_tag(@topic_view, {action: :feed, slug: @topic_view.topic.slug, topic_id: @topic_view.topic.id}, title: t('rss_posts_in_topic', topic: @topic_view.title), type: 'application/rss+xml') %>
   <%= crawlable_meta_data(title: @topic_view.title,
diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb
index 00e5f1a57..4c58b90cd 100644
--- a/app/views/users/show.html.erb
+++ b/app/views/users/show.html.erb
@@ -2,8 +2,6 @@
 
 <p><%= raw @user.user_profile.bio_processed %></p>
 
-<p><%= t 'powered_by_html' %></p>
-
 <% content_for :head do %>
   <%= crawlable_meta_data(title: @user.username, description: @user.user_profile.bio_summary, image: @user.small_avatar_url) %>
 <% end %>