Commit c7cc92f7

mo khan <mo@mokhan.ca>
2013-06-21 23:42:10
change 'by' to 'By'
1 parent 44cd4f8
Changed files (1)
app
views
creations
app/views/creations/show.html.erb
@@ -1,4 +1,4 @@
-<% provide(:title, "#{@creation.name} by #{@creation.user.name}") -%>
+<% provide(:title, "#{@creation.name} By #{@creation.user.name}") -%>
 <% provide(:description, "#{@creation.story}") -%>
 <% content_for :javascript do %>
   <script type="text/javascript">
@@ -28,25 +28,21 @@
   </div>
   <div class="span6">
     <h1><%= link_to @creation.name, creation_path(@creation) %></h1>
-    <p>by <%= link_to @creation.user.name, profile_path(@creation.user) %></p>
+    <p>By <%= link_to @creation.user.name, profile_path(@creation.user) %></p>
     <hr />
-    <span> <i class="icon-tags"></i> </span>
-    <% @creation.tags.each do |tag| -%>
-      <a href="/tags/<%= tag.name %>"><span class="label"><%= tag.name %></span></a>
+    <% if @creation.tags.any? %>
+      <span> <i class="icon-tags"></i> </span>
+      <% @creation.tags.each do |tag| -%>
+        <a href="/tags/<%= tag.name %>"><span class="label"><%= tag.name %></span></a>
+      <% end -%>
     <% end -%>
-
-    <br /><br />
-    <div class="row">
-      <div class="span6">
-        <% if user_signed_in? %>
-          <% unless current_user == @creation.user || current_user.already_likes(@creation) %>
-            <%= button_to "ADD TO FAVORITES", creation_favorites_path(:creation_id => @creation.id), :method => :post, :class => 'btn btn-primary' %>
-          <% end %>
-        <% else %>
-            <p><%= link_to "SIGN IN", new_user_session_path, :class => "btn btn-primary" %></p>
-        <% end %>
-      </div>
-    </div>
+    <% if user_signed_in? %>
+      <% unless current_user == @creation.user || current_user.already_likes(@creation) %>
+        <%= button_to "ADD TO FAVORITES", creation_favorites_path(:creation_id => @creation.id), :method => :post, :class => 'btn btn-primary' %>
+      <% end %>
+    <% else %>
+        <p><%= link_to "SIGN UP FOR FREE", new_user_session_path, :class => "btn btn-primary" %></p>
+    <% end %>
     <p><%= @creation.story %></p>
   </div>
 </div>
@@ -92,7 +88,7 @@
             <div class="span8">
               <p></p>
               <p>
-              <i class="icon-user"></i> by <%= link_to comment.user.name, profile_path(comment.user) %>
+              <i class="icon-user"></i> By <%= link_to comment.user.name, profile_path(comment.user) %>
               | <i class="icon-calendar"></i> <%= comment.created_at.to_s :foomat %> 
               </p>
             </div>