Commit 17759c8c

mo k <mo@mokhan.ca>
2012-06-21 12:27:26
add creations gallery to home page if not signed in.
1 parent df71f89
Changed files (2)
app
controllers
views
app/controllers/sitemap_controller.rb
@@ -6,7 +6,6 @@ class SitemapController < ApplicationController
     @base_url = "http://#{request.host_with_port}"
     headers['Content-Type'] = 'application/xml'
     respond_to do |format|
-      format.html
       format.xml
     end
   end
app/views/creations/index.html.erb
@@ -1,6 +1,4 @@
-<% if user_signed_in?  -%>
-  <%= render "shared/a_12_column_gallery" %>
-<% else -%>
+<% unless user_signed_in?  -%>
   <div class="row">
     <div class="span6">
       <div id="myCarousel" class="carousel slide">
@@ -19,7 +17,7 @@
         <a class="carousel-control right" href="#myCarousel" data-slide="next">&rsaquo;</a>
       </div>
     </div>
-    <div class="span6" style="background: url(/assets/sunset.png) no-repeat center 0px;opacity:0.8;">
+    <div class="span6">
       <img src="/assets/cakeside-logo.png" alt="" />
       <div style="padding-left:10px;padding-right:10px;">
         <h3>Why CakeSide?</h3>
@@ -60,3 +58,4 @@
     </div>
   </div>
 <% end -%>
+<%= render "shared/a_12_column_gallery" %>