Пример #1
0
 def html_head(self, d):
     """ Assemble html head
     
     modifications to ThemeBase method:
         - Add javascript source file 
     
     @param d: parameter dictionary
     @rtype: unicode
     @return: formatted header
     """
     head = ThemeBase.html_head(self, d)
     head += u'\n<script type="text/javascript" src="%s/%s/js/actionmenuoptions.js"></script>' % (self.cfg.url_prefix_static, self.name)
     return head
Пример #2
0
 def html_head(self, d):
     """ Assemble html head
     
     modifications to ThemeBase method:
         - Add javascript source file 
     
     @param d: parameter dictionary
     @rtype: unicode
     @return: formatted header
     """
     head = ThemeBase.html_head(self, d)
     head += u'\n<script type="text/javascript" src="%s/%s/js/actionmenuoptions.js"></script>' % (
         self.cfg.url_prefix_static, self.name)
     return head
Пример #3
0
 def html_head(self, d):
     html = ThemeBase.html_head(self, d)
     html += '\n<link rel="canonical" href="http://wiki.ros.org/%s" />' % wikiutil.quoteWikinameURL(d['page'].page_name)
     return html
Пример #4
0
 def html_head(self, d):
     extra_line = u'<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>'
     return ThemeBase.html_head(self, d) + '\n' + extra_line
Пример #5
0
 def html_head(self, d):
     extra_line = u'<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>'
     return ThemeBase.html_head(self, d) + '\n' + extra_line
Пример #6
0
 def html_head(self, d):
     return ThemeBase.html_head(self, d) + '\n' + self.faviconLink()