##// END OF EJS Templates
paper: preserve whitespace on description instead of adding breaks...
Adrian Buehlmann -
r13934:ebe1ddbb default
parent child Browse files
Show More
@@ -1,75 +1,75 b''
1 1 {header}
2 2 <title>{repo|escape}: {node|short}</title>
3 3 </head>
4 4 <body>
5 5 <div class="container">
6 6 <div class="menu">
7 7 <div class="logo">
8 8 <a href="http://mercurial.selenic.com/">
9 9 <img src="{staticurl}hglogo.png" alt="mercurial" /></a>
10 10 </div>
11 11 <ul>
12 12 <li><a href="{url}shortlog/{node|short}{sessionvars%urlparameter}">log</a></li>
13 13 <li><a href="{url}graph/{node|short}{sessionvars%urlparameter}">graph</a></li>
14 14 <li><a href="{url}tags{sessionvars%urlparameter}">tags</a></li>
15 15 <li><a href="{url}bookmarks{sessionvars%urlparameter}">bookmarks</a></li>
16 16 <li><a href="{url}branches{sessionvars%urlparameter}">branches</a></li>
17 17 </ul>
18 18 <ul>
19 19 <li class="active">changeset</li>
20 20 <li><a href="{url}raw-rev/{node|short}{sessionvars%urlparameter}">raw</a></li>
21 21 <li><a href="{url}file/{node|short}{sessionvars%urlparameter}">browse</a></li>
22 22 </ul>
23 23 <ul>
24 24 {archives%archiveentry}
25 25 </ul>
26 26 <ul>
27 27 <li><a href="{url}help{sessionvars%urlparameter}">help</a></li>
28 28 </ul>
29 29 </div>
30 30
31 31 <div class="main">
32 32
33 33 <h2><a href="{url}{sessionvars%urlparameter}">{repo|escape}</a></h2>
34 34 <h3>changeset {rev}:{node|short} {changesetbranch%changelogbranchname} {changesettag} {changesetbookmark}</h3>
35 35
36 36 <form class="search" action="{url}log">
37 37 {sessionvars%hiddenformentry}
38 38 <p><input name="rev" id="search1" type="text" size="30" /></p>
39 39 <div id="hint">find changesets by author, revision,
40 40 files, or words in the commit message</div>
41 41 </form>
42 42
43 <div class="description">{desc|strip|escape|addbreaks|nonempty}</div>
43 <div class="description">{desc|strip|escape|nonempty}</div>
44 44
45 45 <table id="changesetEntry">
46 46 <tr>
47 47 <th class="author">author</th>
48 48 <td class="author">{author|obfuscate}</td>
49 49 </tr>
50 50 <tr>
51 51 <th class="date">date</th>
52 52 <td class="date">{date|date} ({date|age})</td></tr>
53 53 <tr>
54 54 <th class="author">parents</th>
55 55 <td class="author">{parent%changesetparent}</td>
56 56 </tr>
57 57 <tr>
58 58 <th class="author">children</th>
59 59 <td class="author">{child%changesetchild}</td>
60 60 </tr>
61 61 <tr>
62 62 <th class="files">files</th>
63 63 <td class="files">{files}</td>
64 64 </tr>
65 65 </table>
66 66
67 67 <div class="overflow">
68 68 <div class="sourcefirst"> line diff</div>
69 69
70 70 {diff}
71 71 </div>
72 72
73 73 </div>
74 74 </div>
75 75 {footer}
@@ -1,255 +1,256 b''
1 1 body {
2 2 margin: 0;
3 3 padding: 0;
4 4 background: white;
5 5 font-family: sans-serif;
6 6 }
7 7
8 8 .container {
9 9 padding-left: 115px;
10 10 }
11 11
12 12 .main {
13 13 position: relative;
14 14 background: white;
15 15 padding: 2em 2em 2em 0;
16 16 }
17 17
18 18 #.main {
19 19 width: 98%;
20 20 }
21 21
22 22 .overflow {
23 23 width: 100%;
24 24 overflow: auto;
25 25 }
26 26
27 27 .menu {
28 28 width: 90px;
29 29 margin: 0;
30 30 font-size: 80%;
31 31 text-align: left;
32 32 position: absolute;
33 33 top: 20px;
34 34 left: 20px;
35 35 right: auto;
36 36 }
37 37
38 38 .menu ul {
39 39 list-style: none;
40 40 padding: 0;
41 41 margin: 10px 0 0 0;
42 42 border-left: 2px solid #999;
43 43 }
44 44
45 45 .menu li {
46 46 margin-bottom: 3px;
47 47 padding: 2px 4px;
48 48 background: white;
49 49 color: black;
50 50 font-weight: normal;
51 51 }
52 52
53 53 .menu li.active {
54 54 font-weight: bold;
55 55 }
56 56
57 57 .menu img {
58 58 width: 75px;
59 59 height: 90px;
60 60 border: 0;
61 61 }
62 62
63 63 .menu a { color: black; display: block; }
64 64
65 65 .search {
66 66 position: absolute;
67 67 top: .7em;
68 68 right: 2em;
69 69 }
70 70
71 71 form.search div#hint {
72 72 display: none;
73 73 position: absolute;
74 74 top: 40px;
75 75 right: 0px;
76 76 width: 190px;
77 77 padding: 5px;
78 78 background: #ffc;
79 79 font-size: 70%;
80 80 border: 1px solid yellow;
81 81 -moz-border-radius: 5px; /* this works only in camino/firefox */
82 82 -webkit-border-radius: 5px; /* this is just for Safari */
83 83 }
84 84
85 85 form.search:hover div#hint { display: block; }
86 86
87 87 a { text-decoration:none; }
88 88 .age { white-space:nowrap; }
89 89 .date { white-space:nowrap; }
90 90 .indexlinks { white-space:nowrap; }
91 91 .parity0 { background-color: #f0f0f0; }
92 92 .parity1 { background-color: white; }
93 93 .plusline { color: green; }
94 94 .minusline { color: #dc143c; } /* crimson */
95 95 .atline { color: purple; }
96 96
97 97 .navigate {
98 98 text-align: right;
99 99 font-size: 60%;
100 100 margin: 1em 0;
101 101 }
102 102
103 103 .tag {
104 104 color: #999;
105 105 font-size: 70%;
106 106 font-weight: normal;
107 107 margin-left: .5em;
108 108 vertical-align: baseline;
109 109 }
110 110
111 111 .branchhead {
112 112 color: #000;
113 113 font-size: 80%;
114 114 font-weight: normal;
115 115 margin-left: .5em;
116 116 vertical-align: baseline;
117 117 }
118 118
119 119 ul#graphnodes .branchhead {
120 120 font-size: 75%;
121 121 }
122 122
123 123 .branchname {
124 124 color: #000;
125 125 font-size: 60%;
126 126 font-weight: normal;
127 127 margin-left: .5em;
128 128 vertical-align: baseline;
129 129 }
130 130
131 131 h3 .branchname {
132 132 font-size: 80%;
133 133 }
134 134
135 135 /* Common */
136 136 pre { margin: 0; }
137 137
138 138 h2 { font-size: 120%; border-bottom: 1px solid #999; }
139 139 h2 a { color: #000; }
140 140 h3 {
141 141 margin-top: -.7em;
142 142 font-size: 100%;
143 143 }
144 144
145 145 /* log and tags tables */
146 146 .bigtable {
147 147 border-bottom: 1px solid #999;
148 148 border-collapse: collapse;
149 149 font-size: 90%;
150 150 width: 100%;
151 151 font-weight: normal;
152 152 text-align: left;
153 153 }
154 154
155 155 .bigtable td {
156 156 vertical-align: top;
157 157 }
158 158
159 159 .bigtable th {
160 160 padding: 1px 4px;
161 161 border-bottom: 1px solid #999;
162 162 }
163 163 .bigtable tr { border: none; }
164 164 .bigtable .age { width: 7em; }
165 165 .bigtable .author { width: 12em; }
166 166 .bigtable .description { }
167 167 .bigtable .description .base { font-size: 70%; float: right; line-height: 1.66; }
168 168 .bigtable .node { width: 5em; font-family: monospace;}
169 169 .bigtable .permissions { width: 8em; text-align: left;}
170 170 .bigtable .size { width: 5em; text-align: right; }
171 171 .bigtable .annotate { text-align: right; }
172 172 .bigtable td.annotate { font-size: smaller; }
173 173 .bigtable td.source { font-size: inherit; }
174 174
175 175 .source, .sourcefirst, .sourcelast {
176 176 font-family: monospace;
177 177 white-space: pre;
178 178 padding: 1px 4px;
179 179 font-size: 90%;
180 180 }
181 181 .sourcefirst { border-bottom: 1px solid #999; font-weight: bold; }
182 182 .sourcelast { border-top: 1px solid #999; }
183 183 .source a { color: #999; font-size: smaller; font-family: monospace;}
184 184 .bottomline { border-bottom: 1px solid #999; }
185 185
186 186 .fileline { font-family: monospace; }
187 187 .fileline img { border: 0; }
188 188
189 189 .tagEntry .closed { color: #99f; }
190 190
191 191 /* Changeset entry */
192 192 #changesetEntry {
193 193 border-collapse: collapse;
194 194 font-size: 90%;
195 195 width: 100%;
196 196 margin-bottom: 1em;
197 197 }
198 198
199 199 #changesetEntry th {
200 200 padding: 1px 4px;
201 201 width: 4em;
202 202 text-align: right;
203 203 font-weight: normal;
204 204 color: #999;
205 205 margin-right: .5em;
206 206 vertical-align: top;
207 207 }
208 208
209 209 div.description {
210 210 border-left: 2px solid #999;
211 211 margin: 1em 0 1em 0;
212 212 padding: .3em;
213 white-space: pre;
213 214 }
214 215
215 216 /* Graph */
216 217 div#wrapper {
217 218 position: relative;
218 219 border-top: 1px solid black;
219 220 border-bottom: 1px solid black;
220 221 margin: 0;
221 222 padding: 0;
222 223 }
223 224
224 225 canvas {
225 226 position: absolute;
226 227 z-index: 5;
227 228 top: -0.7em;
228 229 margin: 0;
229 230 }
230 231
231 232 ul#graphnodes {
232 233 position: absolute;
233 234 z-index: 10;
234 235 top: -1.0em;
235 236 list-style: none inside none;
236 237 padding: 0;
237 238 }
238 239
239 240 ul#nodebgs {
240 241 list-style: none inside none;
241 242 padding: 0;
242 243 margin: 0;
243 244 top: -0.7em;
244 245 }
245 246
246 247 ul#graphnodes li, ul#nodebgs li {
247 248 height: 39px;
248 249 }
249 250
250 251 ul#graphnodes li .info {
251 252 display: block;
252 253 font-size: 70%;
253 254 position: relative;
254 255 top: -3px;
255 256 }
General Comments 0
You need to be logged in to leave comments. Login now