equal
deleted
inserted
replaced
167 |
167 |
168 def template_html_header(self, content_type, page_title, additional_headers=()): |
168 def template_html_header(self, content_type, page_title, additional_headers=()): |
169 w = self.whead |
169 w = self.whead |
170 lang = self.req.lang |
170 lang = self.req.lang |
171 self.write_doctype() |
171 self.write_doctype() |
|
172 page_title = 'posted' |
172 w(u'<base href="%s" />' % html_escape(self.req.base_url())) |
173 w(u'<base href="%s" />' % html_escape(self.req.base_url())) |
173 w(u'<meta http-equiv="content-type" content="%s; charset=%s"/>\n' |
174 w(u'<meta http-equiv="content-type" content="%s; charset=%s"/>\n' |
174 % (content_type, self.req.encoding)) |
175 % (content_type, self.req.encoding)) |
175 w(u'\n'.join(additional_headers) + u'\n') |
176 w(u'\n'.join(additional_headers) + u'\n') |
176 self.template('htmlheader', rset=self.rset) |
177 self.template('htmlheader', rset=self.rset) |
257 |
258 |
258 class SimpleMainTemplate(TheMainTemplate): |
259 class SimpleMainTemplate(TheMainTemplate): |
259 |
260 |
260 id = 'main-no-top' |
261 id = 'main-no-top' |
261 |
262 |
262 def template_header(self, content_type, view=None, page_title='', additional_headers=()): |
263 def template_header(self, content_type, view=None, page_title='oui', additional_headers=()): |
263 page_title = page_title or view.page_title() |
|
264 additional_headers = additional_headers or view.html_headers() |
264 additional_headers = additional_headers or view.html_headers() |
265 whead = self.whead |
265 whead = self.whead |
266 lang = self.req.lang |
266 lang = self.req.lang |
267 self.write_doctype() |
267 self.write_doctype() |
268 whead(u'<meta http-equiv="content-type" content="%s; charset=%s"/>\n' |
268 whead(u'<meta http-equiv="content-type" content="%s; charset=%s"/>\n' |