Commit 6564203a

mo k <m@mokhan.ca>
2011-12-05 00:04:34
remove un-used partials.
1 parent 6ee6e81
app/views/creations/new.html.erb
@@ -2,10 +2,6 @@
   Share my creation
 <% end %>
 
-<% content_for :sidebar do %>
-  <%= render "shared/my_profile_sidebar" %>
-<% end %>
-
 <ul class="tabs">
   <li> <%= link_to "Profile", profiles_mine_path %></li>
   <li class="active"> <%= link_to "Share", new_creation_path %></li>
@@ -14,13 +10,6 @@
   <li><a href="#">Contact</a></li>
 </ul>
 
-<%# <div class="hero-unit">%>
-<%#   <h1>Share your creation with other Cake artists, enthusiasts, and eaters!</h1>%>
-<%#   <p>We&apos;re delighted that you're going to share your latest creation with us.<p>%>
-<%#   <p><a class="btn primary large">Learn more &raquo;</a></p>%>
-<%# </div>%>
-
-
 <div class="row">
   <div class="span12">
     <%= render 'form' %>
app/views/home/index.html.erb
@@ -2,10 +2,6 @@
   Welcome to the CakeSide
 <% end %>
 
-<% content_for :sidebar do %>
-  <%= render "shared/categories_sidebar" %>
-<% end %>
-
 <div class="hero-unit">
   <h1>Hello, cake eater!</h1>
   <p>Vestibulum id ligula porta felis euismod semper. Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.</p>
app/views/profiles/mine.html.erb
@@ -1,12 +1,6 @@
 <% content_for :title do %>
   My profile
 <% end %>
-<% content_for :stylesheets do %>
-<% end %>
-
-<% content_for :sidebar do %>
-  <%= render "shared/my_profile_sidebar" %>
-<% end %>
 
 <ul class="tabs">
   <li class="active"> <%= link_to "Profile", profiles_mine_path %></li>
app/views/profiles/show.html.erb
@@ -16,6 +16,10 @@
     <div class="media-grid">
       <a href="<%= url_for profile_path(@profile) %>"><img src="<%= avatar_url @profile %>&amp;s=200" alt="<%= @profile.name %>" /></a>
     </div>
+    <% if @profile.email.eql? "mo.khan@gmail.com" %>
+      <a href="https://twitter.com/mocheen" class="twitter-follow-button" data-show-count="false">Follow @mocheen</a>
+      <script src="//platform.twitter.com/widgets.js" type="text/javascript"></script>
+    <% end %>
   </div>
   <div class="span12">
     <%= render "shared/creation_image_gallery" %>
app/views/shared/_categories_sidebar.html.erb
@@ -1,6 +0,0 @@
-<h5>Categories</h5>
-<ul>
-  <% Category.all.each do |category| %>
-    <li><a href='/categories/<%= category.slug %>'><%= category.name %></a></li>
-  <% end %>
-</ul>
app/views/shared/_my_profile_sidebar.html.erb
@@ -1,4 +0,0 @@
-<h2><%= current_user.name %></h2>
-<img src="<%= avatar_url current_user %>&amp;s=200" alt="<%= current_user.name %>" class="photo" />
-<p>member since: <%= current_user.created_at.to_s :foomat %></p>
-<p>last signed in: <%= current_user.last_sign_in_at.to_s :foomat %></p>
app/views/shared/_their_profile_sidebar.html.erb
@@ -1,11 +0,0 @@
-
-<div class="summary">
-  <img src="<%= avatar_url @profile %>&amp;s=200" alt="<%= @profile.name %>" class="photo" />
-  <p><%= @profile.name %></p>
-</div><!-- /.summary -->
-
-<% if @profile.email.eql? "mo.khan@gmail.com" %>
-<a href="https://twitter.com/mocheen" class="twitter-follow-button" data-show-count="false">Follow @mocheen</a>
-<script src="//platform.twitter.com/widgets.js" type="text/javascript"></script>
-<% end %>
-