Commit b79f606a
Changed files (2)
app
assets
stylesheets
views
profiles
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 %>&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>