From e856945a947d959c99d81de5864cae8e64b7402a Mon Sep 17 00:00:00 2001 From: maxwell Date: Tue, 20 Jul 2010 11:41:50 -0700 Subject: [PATCH] RS MS photos are no longer ginormous, and also a small bug where photos were going to the status message show page. --- app/views/photos/_photo.haml | 2 +- public/stylesheets/application.css | 3 +++ public/stylesheets/sass/application.sass | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/views/photos/_photo.haml b/app/views/photos/_photo.haml index f822bce13..dddd8e7f1 100644 --- a/app/views/photos/_photo.haml +++ b/app/views/photos/_photo.haml @@ -9,7 +9,7 @@ = link_to (image_tag post.image.url(:thumb_medium)), object_path(post) %div.time - = link_to(how_long_ago(post), status_message_path(post)) + = link_to(how_long_ago(post), photo_path(post)) \-- = link_to "show comments (#{post.comments.count})", '#', :class => "show_post_comments" = render "comments/comments", :post => post diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index 86c4fc512..e94e68f64 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -17,6 +17,9 @@ a { a:hover { color: #018790; } +img { + width: 100%; } + #flash_notice, #flash_error, #flash_alert { diff --git a/public/stylesheets/sass/application.sass b/public/stylesheets/sass/application.sass index 09bd60a8b..b233194d3 100644 --- a/public/stylesheets/sass/application.sass +++ b/public/stylesheets/sass/application.sass @@ -16,6 +16,8 @@ a :font-weight bold &:hover :color #018790 +img + :width 100% #flash_notice, #flash_error,