app/views/tramway/news/news/show.html.haml in tramway-news-1.0 vs app/views/tramway/news/news/show.html.haml in tramway-news-1.0.1

- old
+ new

@@ -1,20 +1,21 @@ - title @news.title = content_for :head_content do = stylesheet_link_tag 'tramway/news/application' -.row - .col-md-12 - .view.hm-white-slight{ style: "background-image: url('#{'https://mdbootstrap.com/img/Photos/Slides/img%20(142).jpg'}'); height: 60vh" } - .container-fluid.full-bg-img.d-flex.align-items-center.justify-content-center - .row.d-flex.justify-content-center - .col-md-10.text-center - %h4.display-3.font-bold.white-text.mb-2 - = @news.title -.row - .col-md-12.text-left.mt-1 - %h5 - = @author.short_name - = @news.created_at.strftime('%d.%m.%Y') -.row - .col-md-12.excerpt.mt-1 - = @news.body +.container + .row + .col-md-12 + .view.hm-white-slight{ style: "background-image: url('#{@news.photo.url}'); height: 60vh" } + .container-fluid.full-bg-img.d-flex.align-items-center.justify-content-center + .row.d-flex.justify-content-center + .col-md-10.text-center + %h4.display-3.font-bold.white-text.mb-2 + = @news.title + .row + .col-md-12.text-left.mt-1 + %h5 + = @author.short_name + = @news.created_at.strftime('%d.%m.%Y') + .row + .col-md-12.excerpt.mt-1 + != @news.body