annotate build/messages/templates/default.html @ 182:a54d3c0b5f4a

tests: Patch `os.path.exists` and improve patching for `open`. You can specify additional modules for which to patch `open`. Also, it was incorrectly updating the opened file, even when it was opened for read only. Now it only updates the contents if the file was opened for write, and supports appending to the end. Last, it supports opening text files in binary mode.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 04 Jan 2015 14:55:41 -0800
parents b6f79f23904a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
123
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
1 <!doctype html>
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
2 <html>
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
3 <head>
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
4 <title>{{ page.title }}</title>
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
5 <meta name="generator" content="PieCrust" />
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
6 <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Lobster">
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
7 <style>
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
8 body {
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
9 margin: 0;
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
10 padding: 1em;
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
11 background: #eee;
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
12 color: #000;
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
13 font-family: Georgia, serif;
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
14 }
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
15 h1 {
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
16 font-size: 4.5em;
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
17 font-family: Lobster, 'Trebuchet MS', Verdana, sans-serif;
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
18 text-align: center;
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
19 font-weight: bold;
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
20 margin-top: 0;
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
21 color: #333;
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
22 text-shadow: 0px 2px 5px rgba(0,0,0,0.3);
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
23 }
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
24 h2 {
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
25 font-size: 2.5em;
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
26 font-family: 'Lobster', 'Trebuchet MS', Verdana, sans-serif;
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
27 }
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
28 code {
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
29 background: #ddd;
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
30 padding: 0 0.2em;
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
31 }
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
32 #preamble {
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
33 font-size: 1.2em;
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
34 font-style: italic;
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
35 text-align: center;
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
36 margin-bottom: 0;
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
37 }
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
38 #container {
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
39 margin: 0 20%;
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
40 }
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
41 #content {
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
42 margin: 2em 1em;
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
43 }
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
44 .error-details {
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
45 color: #d11;
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
46 }
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
47 .note {
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
48 margin: 3em;
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
49 color: #888;
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
50 font-style: italic;
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
51 }
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
52 </style>
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
53 </head>
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
54 <body>
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
55 <div id="container">
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
56 <div id="header">
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
57 <p id="preamble">A Message From The Kitchen:</p>
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
58 <h1>{{ page.title }}</h1>
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
59 </div>
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
60 <hr />
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
61 <div id="content">
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
62 {% block content %}
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
63 {{ content|safe }}
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
64 {% endblock %}
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
65 </div>
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
66 <hr />
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
67 {% block footer %}{% endblock %}
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
68 </div>
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
69 </body>
b6f79f23904a Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
70 </html>