vars.html 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. {{extend 'layout.html'}}
  2. {{import cgi}}
  3. <div class="contentleft">
  4. <h1>{{=T('Docs for')}} {{=title}}</h1>
  5. <div align="right">
  6. [ <a href="http://docs.python.org/tut/">Python Tutorial</a> ]
  7. [ <a href="http://docs.python.org/lib/">Python Libraries</a> ]
  8. [ <a href="http://web2py.readthedocs.org/en/latest/">web2py source docs</a> ]
  9. </div>
  10. <h2>{{=T('Description')}}</h2>
  11. <br/>
  12. {{if t:}}
  13. {{=t}}{{if d:}} extends {{=d}}{{pass}}
  14. {{pass}}
  15. <br/>
  16. {{pass}}
  17. {{if doc:}}<br/><br/>{{=MARKMIN(doc)}}{{pass}}
  18. <br/><br/>
  19. <div class="boxInfo">
  20. {{if attributes:}}
  21. <h2>{{=T('Attributes')}}</h2>
  22. <table>
  23. <tr><td colspan=2><hr/></td></tr>
  24. {{for key in sorted(attributes):}}
  25. {{doc1,t1,c1,d1=attributes[key]}}
  26. <tr>
  27. <td>
  28. {{if key.count('.')<2:}}
  29. {{=A(key,_rel="nofollow",_href=URL(args=key.split('.')))}}
  30. {{else:}}
  31. {{=key}}
  32. {{pass}}
  33. </td>
  34. <td>
  35. {{if t1:}}
  36. {{=t1}}{{if d1:}} extends {{=d1}}{{pass}}
  37. {{if c1:}} belongs to class {{=c1}}{{pass}}
  38. <br/>
  39. {{pass}}
  40. {{if doc1:}}{{=MARKMIN(doc1)}}{{pass}}
  41. </td>
  42. </tr>
  43. <tr><td colspan=2><hr/></td></tr>
  44. {{pass}}
  45. </table>
  46. </div>
  47. {{pass}}
  48. </div>