This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

display default avatar correctly

  • Loading branch information...
croaky committed Jan 31, 2011
1 parent f4cf4ec commit e9b172ae82512f16ad1a4dc0404e5dfe199f68d4
Showing with 7 additions and 4 deletions.
  1. +5 −2 app/helpers/twitter_helper.rb
  2. +1 −1 public/stylesheets/sass/screen.scss
  3. +1 −1 public/stylesheets/screen.css
@@ -1,11 +1,14 @@
module TwitterHelper
def twitter_avatar(name, size)
- content_tag :div, :class => "avatar" do
- if name.present?
+ if name.present?
+ content_tag :div, :class => "avatar" do
link_to "http://twitter.com/#{name}" do
image_tag "http://avatar.statusok.com/#{name}?size=#{size}", :width => "#{size}px", :height => "#{size}px"
end
end
+ else
+ content_tag :div, :class => "avatar default" do
+ end
end
end
end
@@ -499,7 +499,7 @@ html, body {
@include font-FellSC;
padding: 15px 30px;
div.avatar {
- background: url('../images/default-avatar-lg.png') no-repeat;
+ background: url('/images/default-avatar-lg.png') no-repeat;
display: inline-block;
height: 73px;
width: 73px;
@@ -936,7 +936,7 @@ html, body {
font-family: 'IM Fell English SC', Times, "Times New Roman", Georgia, serif;
padding: 15px 30px; }
#container section#main-continue div.student div.avatar {
- background: url("../images/default-avatar-lg.png") no-repeat;
+ background: url("/images/default-avatar-lg.png") no-repeat;
display: inline-block;
height: 73px;
width: 73px; }

0 comments on commit e9b172a

Please sign in to comment.