Permalink
Browse files

Use tweetimag.es for avatars. Fixed table width

  • Loading branch information...
1 parent af8d60f commit da1a7c5db5bd9e85048b3f6fcc932b9e4bce4ae5 Jeremy Weiskotten committed Apr 22, 2010
@@ -1,5 +1,12 @@
# Methods added to this helper will be available to all templates in the application.
module ApplicationHelper
+ # Options hash can specify a size: m (micro), n (normal), b (big), or o (original)
+ # See http://tweetimag.es/
+ def twitter_profile_image_url(screen_name, options={})
+ options[:size] ||= 'n'
+ "http://img.tweetimag.es/i/#{screen_name}_#{options[:size]}"
+ end
+
def title(t)
content_for :page_title, t
end
@@ -1,8 +1,5 @@
%blockquote.tweet
%p
- if tweet.twitterer
- - if tweet.twitterer.picture_url.blank?
- = link_to "@#{tweet.twitterer.username}", tweet.twitterer.profile_url
- - else
- = link_to image_tag(tweet.twitterer.picture_url, :alt => "@#{tweet.twitterer.username}", :width => 48, :height => 48, :align => 'left', :valign => 'middle'), tweet.twitterer.profile_url
+ = link_to image_tag(twitter_profile_image_url(tweet.twitterer.username), :alt => "@#{tweet.twitterer.username}", :height => 48, :width => 48, :align => 'left', :valign => 'middle'), tweet.twitterer.profile_url
= status_text_with_report_links tweet
@@ -19,10 +19,9 @@
%span.pronoun
%h2
= succeed '’s' do
- - if @report.twitterer.picture_url.blank?
- = link_to @report.twitterer.full_name, @report.twitterer.profile_url
- - else
- = link_to image_tag(@report.twitterer.picture_url, :alt => @report.picture_description) + @report.twitterer.full_name, @report.twitterer.profile_url
+ %a{ :href => @report.twitterer.profile_url }
+ %img{ :src => twitter_profile_image_url(@report.twitterer.username), :alt => "#{@report.picture_description}", :height => 48, :width => 48 }
+ = @report.twitterer.full_name
= @report.title
Report
@@ -366,6 +366,9 @@ table.calendar td.today {
}
.report.show .report-container .data {
}
+.report.show #data_table {
+ width: 580px;
+}
.report.show #timeline {
height: 300px;
}

0 comments on commit da1a7c5

Please sign in to comment.