Commit 8d4477d0

mo k <m@mokhan.ca>
2011-09-17 23:59:23
remove hard coded image height and weight.
1 parent 7d960d0
app/views/creations/_form.html.erb
@@ -11,10 +11,6 @@
   <% end %>
 
   <fieldset class="cute_form">
-    <%# <%= f.label :image, 'data-editable' => 'false' %>
-    <%# <%= f.file_field :image, :class => "forms", 'data-editable' => 'false'   %>
-    <%# <%= f.label :remote_image_url, "or image url", 'data-editable' => 'false'  %>
-    <%# <%= f.text_field :remote_image_url, :class => "forms", 'data-editable' => 'false'  %>
     <%= f.label :name %>
     <%= f.text_field :name, :class => "forms" %>
     
app/views/creations/index.html.erb
@@ -9,7 +9,7 @@
 <div class="product_box">
   <h2><%= creation.name %></h2>
   <a href="<%= url_for creation %>">
-    <%= image_tag creation.image_url.to_s, :width => "285px", :height => "140px", :class => "photo", :alt => creation.name %>
+    <%= image_tag creation.image_url.to_s, :class => "photo", :alt => creation.name %>
   </a>
   <p><%= creation.short_story %> <%= link_to 'more', creation %></p>
 </div>
app/views/creations/mine.html.erb
@@ -1,7 +1,7 @@
 <% content_for :title do %>
   My Creations
 <% end %>
-<%= link_to "share my creation", new_creation_path(@creation), :class => 'floatRight' %>
+<%= link_to "share my creation", new_creation_path(@creation), :class => 'fright' %>
 <h1>My Creations</h1>
 
 <% if @creations.length == 0 %>
@@ -13,7 +13,7 @@
     <div class="product_box">
       <h2><%= creation.name %></h2>
       <a href="<%= url_for creation %>">
-        <%= image_tag creation.image_url.to_s, :width => "285px", :height => "140px", :class => "photo" %>
+        <%= image_tag creation.image_url.to_s, :class => "photo" %>
       </a>
       <p><%= creation.short_story %> <%= link_to 'more', creation %></p>
     </div>
app/views/creations/show.html.erb
@@ -3,7 +3,7 @@
 <% end %>
 
 <% if signed_in? %>
-  <div class="floatRight">
+  <div class="fright">
     <%= link_to "share my creation", new_creation_path %>
   </div>
 <% end %>
@@ -13,9 +13,9 @@
   <h1><%= @creation.name %> by <em> <%= link_to @creation.user.name, profile_path(@creation.user) %> </em> </h1>
 <% end %>
 
-<div class="width100 floatLeft">
+<div class="width100 fleft">
     <p> 
-    <%= image_tag @creation.image_url.to_s, :class => ['photo','floatRight'], :alt => @creation.name %>
+    <%= image_tag @creation.image_url.to_s, :class => ['photo','fright'], :alt => @creation.name %>
     <%= @creation.story %> 
     <% if @creation.user == current_user %>
       <%= link_to '(edit)', edit_creation_path(@creation), :class => 'smallFont' %>