Ignore:
Timestamp:
Aug 9, 2009, 6:45:28 PM (15 years ago)
Author:
quentin
Message:

Move the help popup code into the templates where it belongs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • package_branches/invirt-web/cherrypy/code/templates/functions.mako

    r2393 r2400  
    3939% endif
    4040</%def>
     41
     42<%!
     43def jquote(string):
     44    return "'" + string.replace('\\', '\\\\').replace("'", "\\'").replace('\n', '\\n') + "'"
     45%>
     46
     47<%def name="helppopup(subj)">
     48## Return HTML code for a (?) link to a specified help topic
     49<span class="helplink"><a href="help?simple=true;subject=${subj | u}" target="_blank" onclick="return helppopup(${subj | jquote,u})">(?)</a></span>
     50</%def>
Note: See TracChangeset for help on using the changeset viewer.