Commit 7a6b4b51
Changed files (3)
app
views
app/views/creations/show.html.erb
@@ -28,7 +28,7 @@
<iframe src="http://www.facebook.com/plugins/like.php?href=<%= request.url %>" scrolling="no" frameborder="0" style="border:none; width:350px; height:30px"></iframe>
<% if user_signed_in? %>
<% unless current_user == @creation.user || current_user.already_likes(@creation) %>
- <%= button_to "Favorite", creation_favorites_path(:creation_id => @creation.id), :method => :post, :class => 'btn success' %>
+ <%= button_to "Add to favorites", creation_favorites_path(:creation_id => @creation.id), :method => :post, :class => 'btn btn-success' %>
<% end %>
<% end %>
</div>
app/views/layouts/application.html.erb
@@ -77,7 +77,7 @@
</ul>
</li>
<% else %>
- <li> <a href="<%= url_for new_user_session_path %>">sign in</a> </li>
+ <li> <a href="<%= url_for new_user_session_path %>">Sign In</a> </li>
<% end %>
</ul>
</div>
app/views/profiles/show.html.erb
@@ -3,7 +3,7 @@
<% end %>
<div class="row">
- <div class="span16">
+ <div class="span12">
<h1>
<%= @profile.name %>
<small>A member since <%= @profile.created_at.to_s :foomat %>, with <%= @profile.creations.length %> creations.</small>
@@ -12,16 +12,14 @@
</div>
<div class="row">
- <div class="span4">
- <div class="media-grid">
- <a href="<%= url_for profile_path(@profile) %>"><img src="<%= avatar_url @profile %>&s=200" alt="<%= @profile.name %>" /></a>
- </div>
- <% if @profile.email.eql? "mo.khan@gmail.com" %>
+ <div class="span3">
+ <a href="<%= url_for profile_path(@profile) %>"><img src="<%= avatar_url @profile %>&s=200" alt="<%= @profile.name %>" /></a>
+ <% if @profile.email.eql? "mo@mokhan.ca" %>
<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">
+ <div class="span9">
<%= render "shared/creation_image_gallery" %>
</div>
</div>