orbit-4-2/app/views/front/show_inner_ad_image.html.erb

21 lines
653 B
Plaintext
Raw Permalink Normal View History

<% if @ad_image %>
<h1 class="h1"><%= @ad_image.title %></h1>
<div class="info">
<div class="info1">
<span class="date"><%= display_date_time(@ad_image.post_date) %></span>
</div>
</div>
<div class="news_image">
<%#= image_tag(@ad_image.image.url, :size => "320x240") if @ad_image.image.file %>
<%= link_to image_tag(@ad_image.file.url, :size => "320x240"), @ad_image.file.url, {:target => '_blank', :title => @ad_image.title} if @ad_image.file.file %>
</div>
<div class="news_paragraph">
<%= @ad_image.context.html_safe rescue '' %>
</div>
<%#= share_links(@ad_image, 'ad_image') %>
<% else %>
<% end %>