aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v4/html_promo.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sisu/v4/html_promo.rb')
-rw-r--r--lib/sisu/v4/html_promo.rb17
1 files changed, 7 insertions, 10 deletions
diff --git a/lib/sisu/v4/html_promo.rb b/lib/sisu/v4/html_promo.rb
index 6773d07f..981bd7dc 100644
--- a/lib/sisu/v4/html_promo.rb
+++ b/lib/sisu/v4/html_promo.rb
@@ -175,7 +175,7 @@ module SiSU_HTML_Promo
@rc['search']['sisu']['action']
else nil
end
- form=if action \
+ if action \
and db
@env.widget.search_form('sisusearch',action,db,table)
else ''
@@ -275,36 +275,34 @@ module SiSU_HTML_Promo
end
def site_link #Work area
if url_link.url
- <<WOK
+ <<-WOK
<p class="pane">
#{url_link.url}
#{image}
#{title}
#{subtitle}
</a>#{nick}</p>
-WOK
+ WOK
else
- <<WOK
+ <<-WOK
<p class="pane">
#{image}
#{title}
#{subtitle}
</p>
-WOK
+ WOK
end
end
self
end
def output_form_sponsor(type,id)
cell=cell(@ad[:promo][type][id],prod_id)
- prod_type=((id=~/id_(?:[0-9x]){10,13}/i) ? 'isbn' : 'id')
- id_detail=%{<p class="pane">#{prod_type}: #{prod_id}</p>}
- <<WOK
+ <<-WOK
<br />
#{cell.site_link}
#{cell.blurb}
#{cell.links}
-WOK
+ WOK
end
def output_form_link(type,id)
prod_id=id.gsub(/id_/,'')
@@ -404,7 +402,6 @@ WOK
@ad[:promo_list][category][type].each do |i|
if i
id=((i.inspect =~/^\d/) ? "id_#{i.to_s.strip}" : i.to_s.strip) #watch remove .to_s ?
- gbp=usd=euro=nil
if defined? @ad[:promo][type][id] \
and not @ad[:promo][type][id].nil?
adverts << output_form_select(type,id)