зеркало из https://github.com/mozilla/pjs.git
Changing from COSES to TemplateToolkit
This commit is contained in:
Родитель
0c0d8214c0
Коммит
cf461c1c74
|
@ -1,42 +1,21 @@
|
|||
COSES
|
||||
TemplateToolkit
|
||||
1
|
||||
|
||||
<text xml:space="default" xmlns="http://bugzilla.mozilla.org/coses">
|
||||
HTTP/1.1 [% IF response %][% response %][% ELSE %]200 OK[% END %]
|
||||
[% IF headers != '' %][% headers %][% END -%]
|
||||
Content-Type: text/html
|
||||
|
||||
<!-- - - - - - - -+
|
||||
| HEADER TEMPLATE |
|
||||
+ - - - - - - - -->
|
||||
|
||||
<!-- HTTP Header -->
|
||||
<text>
|
||||
HTTP/1.1 <with variable="response"><text value="(response)"/></with><else>200 OK</else><br/>
|
||||
<with variable="headers"><text value="(headers)"/></with>Content-Type: text/html
|
||||
</text>
|
||||
|
||||
<!-- Separator -->
|
||||
<br/><br/>
|
||||
|
||||
<!-- HTML Header -->
|
||||
<text><![CDATA[
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>]]><text escape="html" value="(app.name): (title)"/><![CDATA[</title>
|
||||
<title>[% app.name %]: [% title %]</title>
|
||||
<link rel="stylesheet" href="style">
|
||||
]]></text>
|
||||
|
||||
<!-- User's stylesheet, if any
|
||||
<if lvalue="(session.fields.settings:stylesheet)" condition="ne" rvalue="">
|
||||
<link rel="stylesheet" href="<text escape="html" value="(session.fields.settings:stylesheet)"/>">
|
||||
</if>-->
|
||||
|
||||
<!-- End of HTML Header -->
|
||||
<text xml:space="preserve"><![CDATA[
|
||||
[% IF session.fields.settings.stylesheet != '' -%]
|
||||
<link rel="stylesheet" href="[% session.fields.settings.stylesheet %]">
|
||||
[% END -%]
|
||||
</head>
|
||||
<body>
|
||||
<h1>]]><text escape="html" value="(title)"/><![CDATA[</h1>
|
||||
]]></text>
|
||||
|
||||
<!-- See also the footer template. -->
|
||||
|
||||
</text>
|
||||
<h1>[% title %]</h1>
|
||||
[%- IF session.adminMessage != '' %]
|
||||
<p class="adminMessage">[% session.adminMessage %]</p>
|
||||
[% END -%]
|
||||
|
|
Загрузка…
Ссылка в новой задаче