Fix ad_banner sec and msec
This commit is contained in:
parent
7a42ef9193
commit
0fcafc2418
|
@ -8,7 +8,7 @@
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<p class="ad_banner_slideshow">
|
<p class="ad_banner_slideshow">
|
||||||
<% preview_block_ad_images_helper(ad_banner).each do |ad_image| -%>
|
<% preview_block_ad_images_helper(ad_banner).each do |ad_image| -%>
|
||||||
<%= image_tag ad_image.file,:alt => (ad_image.title[locale] || " "),:time_to_next => ad_banner.transition_sec,:link_open=> ad_image.link_open, :link_url =>((ad_image.out_link || ad_banner.context || " ")) %>
|
<%= image_tag ad_image.file,:alt => (ad_image.title[locale] || " "),:time_to_next => ad_banner.transition_msec,:link_open=> ad_image.link_open, :link_url =>((ad_image.out_link || ad_banner.context || " ")) %>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<p class="ad_banner_slideshow">
|
<p class="ad_banner_slideshow">
|
||||||
<% preview_block_ad_images_helper(ad_banner).each do |ad_image| -%>
|
<% preview_block_ad_images_helper(ad_banner).each do |ad_image| -%>
|
||||||
<%= image_tag ad_image.file,:alt => (ad_image.title[locale] || ' '),:time_to_next => ad_banner.transition_sec,:link_open=> ad_image.link_open, :link_url =>((ad_image.out_link || ad_banner.context || ' ')) %>
|
<%= image_tag ad_image.file,:alt => (ad_image.title[locale] || ' '),:time_to_next => ad_banner.transition_msec,:link_open=> ad_image.link_open, :link_url =>((ad_image.out_link || ad_banner.context || ' ')) %>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -157,7 +157,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-actions">
|
<div class="form-actions">
|
||||||
<%= link_to t("modal.preview"), admin_realtime_preview_ad_banner_path(@ad_image.ad_banner.title) ,:class=>"preview_trigger btn btn-success" rescue nil%>
|
<%#= link_to t("modal.preview"), admin_realtime_preview_ad_banner_path(@ad_image.ad_banner.title) ,:class=>"preview_trigger btn btn-success" rescue nil%>
|
||||||
<%= f.submit t("submit"),:class=>"btn btn-primary" %>
|
<%= f.submit t("submit"),:class=>"btn btn-primary" %>
|
||||||
<%= f.submit t("cancel"),:class=>"btn ",:type => 'reset' %>
|
<%= f.submit t("cancel"),:class=>"btn ",:type => 'reset' %>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -66,7 +66,7 @@ module ParserCommon
|
||||||
printable_ad_images.each do |ad_image| #TODO Need Reflact
|
printable_ad_images.each do |ad_image| #TODO Need Reflact
|
||||||
res << "<img src='#{ad_image.file}' "
|
res << "<img src='#{ad_image.file}' "
|
||||||
res << "alt='#{ad_image.title || ' '}' "
|
res << "alt='#{ad_image.title || ' '}' "
|
||||||
res << "time_to_next='#{ad_banner.transition_sec}' "
|
res << "time_to_next='#{ad_banner.transition_msec}' "
|
||||||
res << "link_open='#{ad_image.link_open}' "
|
res << "link_open='#{ad_image.link_open}' "
|
||||||
# res << "link_url='#{(ad_image.direct_to_after_click?? ad_image.out_link : ad_banner.context) || ' '}' "
|
# res << "link_url='#{(ad_image.direct_to_after_click?? ad_image.out_link : ad_banner.context) || ' '}' "
|
||||||
res << "link_url='#{(ad_image.out_link || ad_banner.context || ' ')}' "
|
res << "link_url='#{(ad_image.out_link || ad_banner.context || ' ')}' "
|
||||||
|
|
Loading…
Reference in New Issue