Commit 430094a2

luu stiles <luuduong@gmail.com>
2012-05-26 05:32:25
added fb logo and show it on profile
1 parent 64fa364
Changed files (3)
app
assets
views
profiles
registrations
app/assets/images/f_logo_16x16x32.png
Binary file
app/views/profiles/show.html.erb
@@ -13,12 +13,18 @@
 
 <div class="row">
   <div class="span3">
-    <a href="<%= url_for profile_path(@profile) %>"><img src="<%= avatar_url @profile %>&amp;s=200" alt="<%= @profile.name %>" /></a>
-    <a  href="<%= @profile.website %>">website</a>
-    <% unless @profile.twitter.blank? %>
-      <a href="https://twitter.com/<%= @profile.twitter %>" class="twitter-follow-button" data-show-count="false">Follow @<%= @profile.twitter %></a>
+    <p><a href="<%= url_for profile_path(@profile) %>"><img src="<%= avatar_url @profile %>&amp;s=200" alt="<%= @profile.name %>" /></a></p>
+    <% unless @profile.website.blank? %>
+		    <p><a  href="<%= @profile.website %>" target="_blank"><%= @profile.website %></a></p>
+    <% end %>
+	<% unless @profile.twitter.blank? %>
+      <p><a href="https://twitter.com/<%= @profile.twitter %>" target="_blank" class="twitter-follow-button" data-show-count="false">Follow @<%= @profile.twitter %></a></p>
       <script src="//platform.twitter.com/widgets.js" type="text/javascript"></script>
     <% end %>
+    <% unless @profile.facebook.blank? %>
+		    <p><a  href="<%= @profile.facebook %>" target="_blank"><img src="/assets/f_logo_16x16x32.png" alt="Like on Facebook"/> Like on Facebook</a></p>
+    <% end %>
+
   </div>
   <div class="span9">
     <%= render "shared/creation_image_gallery" %>
app/views/registrations/edit.html.erb
@@ -48,7 +48,7 @@
         </div><!-- /control-group -->
         <div class="control-group">
           <%= f.label :twitter, :class => "control-label" %> 
-          <div class="controls"> <%= f.text_field :twitter, :class => "input-xlarge", :placeholder => "CakeSide", :maxlength => "255" %> </div>
+          <div class="controls"> <%= f.text_field :twitter, :class => "input-xlarge", :placeholder => "without the @ sign", :maxlength => "255" %> </div>
         </div><!-- /control-group -->
         <div class="control-group">
           <%= f.label :facebook, :class => "control-label" %>