app/views/family_gallery/pictures/show.mobile.haml in family_gallery-0.0.7 vs app/views/family_gallery/pictures/show.mobile.haml in family_gallery-0.0.8
- old
+ new
@@ -30,10 +30,10 @@
%table.navigation-links{width: "#{@width}px;"}
%tbody
%tr
%td.previous= link_to t(".previous"), [@group, @previous_picture] if @previous_picture
%td.next= link_to t(".next"), [@group, @next_picture] if @next_picture
- .picture-container{style: "width: #{@width}px; height: #{@height}px; background-size: #{@width}px #{@picture.height_for_width(@width)}px; background-image: url('#{@picture.image.url}');"}
+ .picture-container{style: "width: #{@width}px; height: #{@height}px; background-size: #{@width}px #{@picture.height_for_width(@width)}px; background-image: url('#{@picture_url}');"}
- @picture.user_taggings.joins(:user).each do |user_tagging|
.tagged-user{class: "tagged-user-#{user_tagging.user.id}", style: "left: #{user_tagging.left_for_width(@width) - 50}px; top: #{user_tagging.top_for_height(@height) - 50}px;"}
%h2= t(".tagged_users")
.tagged-users-list