Sha256: a5a40999f97e698b4e5f1951f0484aa28886cbc71353db7889aceeaa2330fc99
Contents?: true
Size: 1.26 KB
Versions: 1
Compression:
Stored size: 1.26 KB
Contents
module HelpPopups module ApplicationHelper def help_popup(topic_code) @topic = Topic.where(:code => topic_code).first return_html = "<div id='help_popup_" + topic_code + "' class='help_popup' style='display:none'>" return_html = return_html + " <div style='border-bottom:1px solid #333333'>" return_html = return_html + " <div style='float:left' class='help_popup_title'>" + @topic.title + "</div>" return_html = return_html + " <div style='float:right'>" return_html = return_html + " <a href='#' style='color:#FF0000;font-weight:bold;text-decoration:none' onclick='document.getElementById(\"help_popup_" + topic_code + "\").style.display=\"none\";'>X</a>" return_html = return_html + " </div>" return_html = return_html + " <div style='clear:both'></div>" return_html = return_html + " </div>" return_html = return_html + " <div class='help_popup_body'>" + @topic.body.html_safe + "</div>" return_html = return_html + "</div>" return_html = return_html + image_tag("help_popup.gif", :title => @topic.title, :style => "cursor:pointer", :onclick => "document.getElementById(\"help_popup_" + topic_code + "\").style.display=\"inline\";") return_html.html_safe end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
help_popups-0.1.0 | app/helpers/help_popups/application_helper.rb |