Commit b79f606a

luu stiles <luuduong@gmail.com>
2012-05-24 13:01:45
updated error message styles so it doesn't wrap and show twitter handle for another cakeside user
1 parent 82d2035
Changed files (2)
app
assets
views
app/assets/stylesheets/scaffolds.css.scss
@@ -33,7 +33,8 @@ div {
 .field_with_errors {
   padding: 2px;
   background-color: red;
-  display: table; }
+  display: block; 
+  float: left;	}
 
 #error_explanation {
   width: 450px;
app/views/profiles/show.html.erb
@@ -15,8 +15,8 @@
   <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>
-    <% if @profile.email.eql? "mo@mokhan.ca" %>
-      <a href="https://twitter.com/mocheen" class="twitter-follow-button" data-show-count="false">Follow @mocheen</a>
+    <% unless @profile.twitter.blank? %>
+      <a href="https://twitter.com/<%= @profile.twitter %>" class="twitter-follow-button" data-show-count="false">Follow @<%= @profile.twitter %></a>
       <script src="//platform.twitter.com/widgets.js" type="text/javascript"></script>
     <% end %>
   </div>