use url_for for static files to use webapp's context

This commit is contained in:
Jan Dittberner 2009-01-23 18:21:33 +01:00
parent 0a4cb8da4c
commit d66ca333ad

View file

@ -23,12 +23,12 @@ License along with this program. If not, see
<html> <html>
<head> <head>
<title>${_('Debian Developer Portfolio Service')}${self.titleaddon()}</title> <title>${_('Debian Developer Portfolio Service')}${self.titleaddon()}</title>
${h.stylesheet_link('/stylesheets/style.css')} ${h.stylesheet_link(h.url_for('/stylesheets/style.css'))}
${self.extrahead()} ${self.extrahead()}
</head> </head>
<body> <body>
<div id="header"> <div id="header">
${h.image('/images/openlogo-100.jpg', _('Debian Logo'), 100, 100, ${h.image(h.url_for('/images/openlogo-100.jpg'), _('Debian Logo'), 100, 100,
id='debianlogo')} id='debianlogo')}
<h1>${_('Debian Developer Portfolio Service')}</h1> <h1>${_('Debian Developer Portfolio Service')}</h1>
<p>${_('''This service has been inspired by Stefano Zacchiroli's <a href="http://wiki.debian.org/DDPortfolio">DDPortfolio page in the Debian Wiki</a>. You can create a set of customized links leading to a Debian Developer's or package maintainer's information regarding Debian.''')}</p> <p>${_('''This service has been inspired by Stefano Zacchiroli's <a href="http://wiki.debian.org/DDPortfolio">DDPortfolio page in the Debian Wiki</a>. You can create a set of customized links leading to a Debian Developer's or package maintainer's information regarding Debian.''')}</p>
@ -37,7 +37,7 @@ License along with this program. If not, see
${self.body()} ${self.body()}
</div> </div>
<div id="footer"> <div id="footer">
${h.image('/images/agplv3-88x31.png', _('AGPL - Free Software'), 88, 31, ${h.image(h.url_for('/images/agplv3-88x31.png'), _('AGPL - Free Software'), 88, 31,
id='agpllogo')} id='agpllogo')}
<p>${_('''The service is available under the terms of the <a href="http://www.gnu.org/licenses/agpl.html">GNU Affero General Public License</a> as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. You can <a href="http://ddportfolio.debian.net/gitweb?p=ddportfolioservice.git;a=summary">download the source code</a> using <a href="http://git.or.cz">git</a>.''')}</p> <p>${_('''The service is available under the terms of the <a href="http://www.gnu.org/licenses/agpl.html">GNU Affero General Public License</a> as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. You can <a href="http://ddportfolio.debian.net/gitweb?p=ddportfolioservice.git;a=summary">download the source code</a> using <a href="http://git.or.cz">git</a>.''')}</p>
<p>${_('''Copyright &copy; 2009 Jan Dittberner''')}</p> <p>${_('''Copyright &copy; 2009 Jan Dittberner''')}</p>