diff --git a/app/views/photos/show.html.haml b/app/views/photos/show.html.haml index cf608098e..780fef673 100644 --- a/app/views/photos/show.html.haml +++ b/app/views/photos/show.html.haml @@ -1,6 +1,7 @@ - title "Photo" -= image_tag @photo.image.url +#show_photo + = image_tag @photo.image.url %h4= "comments (#{@photo.comments.count})" = render "comments/comments", :post => @photo diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index e94e68f64..18831fa80 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -17,7 +17,7 @@ a { a:hover { color: #018790; } -img { +#show_photo img { width: 100%; } #flash_notice, diff --git a/public/stylesheets/sass/application.sass b/public/stylesheets/sass/application.sass index b233194d3..9b8ff81f4 100644 --- a/public/stylesheets/sass/application.sass +++ b/public/stylesheets/sass/application.sass @@ -16,8 +16,7 @@ a :font-weight bold &:hover :color #018790 -img - :width 100% + #flash_notice, #flash_error, @@ -272,6 +271,11 @@ li.comment > img.person_picture &:first-child :margin-right 1em +#show_photo + img + :width 100% + + #debug_info :margin-top 20px