Commit 0dcf2c1e

mo k <mo@mokhan.ca>
2012-06-21 13:00:53
add the categories nav bar to the categories page and remove verbiage from home page.
1 parent 17759c8
Changed files (2)
app
views
app/views/categories/show.html.erb
@@ -2,4 +2,19 @@
 <div class="page-header">
   <h1>Category <em><%= @category.name %></em></h1>
 </div>
-<%= render "shared/a_12_column_gallery" %>
+<div class="row">
+  <div class="span3">
+    <ul class="well nav nav-pills nav-stacked">
+      <% Category.all.each do |category| %>
+        <% if(category == @category) -%>
+          <li class="active"><a href="/categories/<%= category.slug %>"><%= category.name %></a></li>
+        <% else -%>
+          <li><a href="/categories/<%= category.slug %>"><%= category.name %></a></li>
+        <% end -%>
+      <% end %>
+    </ul>
+  </div>
+  <div class="span9">
+    <%= render "shared/a_9_column_gallery" %>
+  </div>
+</div>
app/views/creations/index.html.erb
@@ -19,12 +19,6 @@
     </div>
     <div class="span6">
       <img src="/assets/cakeside-logo.png" alt="" />
-      <div style="padding-left:10px;padding-right:10px;">
-        <h3>Why CakeSide?</h3>
-        <p>CakeSide is a community dedicated to giving cake artists, bakers, creators, hobbyists, and of course cake lovers a place to share ideas and creations. Explore your creativity and find your inspiration. Resources shared here are all user driven.</p>
-        <h3>About Us</h3>
-        <p>We are a passionate team dedicated to improving the cake sharing experience. Frustrated with the lack of community that provides more than just photo sharing, CakeSide was born. All features of this site will be user inspired. We love to listen so feel free to give us <a href="http://cakeside.uservoice.com/" target="_blank">feedback</a>. Check back often to see what's new in the CakeSide community!</p>
-      </div>
       <p style="text-align: center;">
         <a href="<%= url_for new_user_session_path %>" class="btn btn-primary btn-large">Sign Up Now!</a> or <%= link_to "sign in", new_user_session_path %>
       </p>