app/renderers/dc_rotator_renderer.rb
########################################################################
# Prepares code for displaying single element
########################################################################
Prepares code for displaying single element
Prepares code for displaying single element
def one_element(doc)
  html = if doc.picture.empty?
%(<div class="orbit-text">#{doc.text.html_safe}</div>)
    else  
%(<div class="orbit-pic-with-text" style="position: relative;"><img class="orbit-image" src="#{doc.picture}" alt="#{doc.description}">) +
   (doc.text_over ? "<div style=\"#{doc.css_over}\">#{doc.text}</div>" : '') + '</div>'
  end.html_safe
  html = @parent.link_to(html, doc.link, target: doc.target) unless doc.link.empty?
  html
end
def one_element ( doc ) html = if doc . picture . empty? %(<div class="orbit-text">#{doc.text.html_safe}</div>) else %(<div class="orbit-pic-with-text" style="position: relative;"><img class="orbit-image" src="#{doc.picture}" alt="#{doc.description}">) + ( doc . text_over ? "<div style=\"#{doc.css_over}\">#{doc.text}</div>" : '' ) + '</div>' end . html_safe html = @parent . link_to ( html , doc . link , target : doc . target ) unless doc . link . empty? html end
Prepares code for displaying single element
Prepares code for displaying single element
doc
<not_specific>