Mercurial > hg
comparison mercurial/templates/coal/map @ 25664:ebdfca23c1ab
hgweb: use css for stripey background in coal
Since "b8ecc3830c89 or 25dae11bb044::c229a5e7511e" paper style used css for
stripes in background for browsing files, for listing branches/tags/bookmarks,
and so on.
Since coal borrows many paper templates (e.g. shortlogentry.tmpl), it actually
tried to do the same, but it didn't have the needed css classes. You can
compare https://selenic.com/hg?style=coal with
https://selenic.com/hg?style=paper and see how log view in coal style has plain
white background, unlike the one in paper style. This wasn't intended.
Let's copy css classes directly from style-paper.css and remove parity classes
from elements that don't need them anymore. This makes plain white background
have stripes again and makes coal/map even more similar to paper/map (which can
ease porting changes or %including paper/map in future).
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Thu, 25 Jun 2015 20:27:36 +0800 |
parents | 3bb6f5f478a7 |
children | cd842821db2c |
comparison
equal
deleted
inserted
replaced
25663:edd2d20ac687 | 25664:ebdfca23c1ab |
---|---|
41 navshort = '{before%navshortentry}{after%navshortentry}' | 41 navshort = '{before%navshortentry}{after%navshortentry}' |
42 navgraph = '{before%navgraphentry}{after%navgraphentry}' | 42 navgraph = '{before%navgraphentry}{after%navgraphentry}' |
43 filenav = '{before%filenaventry}{after%filenaventry}' | 43 filenav = '{before%filenaventry}{after%filenaventry}' |
44 | 44 |
45 direntry = ' | 45 direntry = ' |
46 <tr class="fileline parity{parity}"> | 46 <tr class="fileline"> |
47 <td class="name"> | 47 <td class="name"> |
48 <a href="{url|urlescape}file/{symrev}{path|urlescape}{sessionvars%urlparameter}"> | 48 <a href="{url|urlescape}file/{symrev}{path|urlescape}{sessionvars%urlparameter}"> |
49 <img src="{staticurl|urlescape}coal-folder.png" alt="dir."/> {basename|escape}/ | 49 <img src="{staticurl|urlescape}coal-folder.png" alt="dir."/> {basename|escape}/ |
50 </a> | 50 </a> |
51 <a href="{url|urlescape}file/{symrev}{path|urlescape}/{emptydirs|urlescape}{sessionvars%urlparameter}"> | 51 <a href="{url|urlescape}file/{symrev}{path|urlescape}/{emptydirs|urlescape}{sessionvars%urlparameter}"> |
55 <td class="size"></td> | 55 <td class="size"></td> |
56 <td class="permissions">drwxr-xr-x</td> | 56 <td class="permissions">drwxr-xr-x</td> |
57 </tr>' | 57 </tr>' |
58 | 58 |
59 fileentry = ' | 59 fileentry = ' |
60 <tr class="fileline parity{parity}"> | 60 <tr class="fileline"> |
61 <td class="filename"> | 61 <td class="filename"> |
62 <a href="{url|urlescape}file/{symrev}/{file|urlescape}{sessionvars%urlparameter}"> | 62 <a href="{url|urlescape}file/{symrev}/{file|urlescape}{sessionvars%urlparameter}"> |
63 <img src="{staticurl|urlescape}coal-file.png" alt="file"/> {basename|escape} | 63 <img src="{staticurl|urlescape}coal-file.png" alt="file"/> {basename|escape} |
64 </a> | 64 </a> |
65 </td> | 65 </td> |
71 fileannotate = ../paper/fileannotate.tmpl | 71 fileannotate = ../paper/fileannotate.tmpl |
72 filediff = ../paper/filediff.tmpl | 72 filediff = ../paper/filediff.tmpl |
73 filecomparison = ../paper/filecomparison.tmpl | 73 filecomparison = ../paper/filecomparison.tmpl |
74 filelog = ../paper/filelog.tmpl | 74 filelog = ../paper/filelog.tmpl |
75 fileline = ' | 75 fileline = ' |
76 <div class="parity{parity} source"><a href="#{lineid}" id="{lineid}">{linenumber}</a> {line|escape}</div>' | 76 <div class="source"><a href="#{lineid}" id="{lineid}">{linenumber}</a> {line|escape}</div>' |
77 filelogentry = ../paper/filelogentry.tmpl | 77 filelogentry = ../paper/filelogentry.tmpl |
78 | 78 |
79 annotateline = ' | 79 annotateline = ' |
80 <tr class="parity{parity}"> | 80 <tr> |
81 <td class="annotate"> | 81 <td class="annotate"> |
82 <a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}#{targetline}" | 82 <a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}#{targetline}" |
83 title="{node|short}: {desc|escape|firstline}">{author|user}@{rev}</a> | 83 title="{node|short}: {desc|escape|firstline}">{author|user}@{rev}</a> |
84 </td> | 84 </td> |
85 <td class="source"><a href="#{lineid}" id="{lineid}">{linenumber}</a> {line|escape}</td> | 85 <td class="source"><a href="#{lineid}" id="{lineid}">{linenumber}</a> {line|escape}</td> |
86 </tr>' | 86 </tr>' |
87 | 87 |
88 diffblock = '<div class="source bottomline parity{parity}"><pre>{lines}</pre></div>' | 88 diffblock = '<div class="source bottomline"><pre>{lines}</pre></div>' |
89 difflineplus = '<a href="#{lineid}" id="{lineid}">{linenumber}</a> <span class="plusline">{line|escape}</span>' | 89 difflineplus = '<a href="#{lineid}" id="{lineid}">{linenumber}</a> <span class="plusline">{line|escape}</span>' |
90 difflineminus = '<a href="#{lineid}" id="{lineid}">{linenumber}</a> <span class="minusline">{line|escape}</span>' | 90 difflineminus = '<a href="#{lineid}" id="{lineid}">{linenumber}</a> <span class="minusline">{line|escape}</span>' |
91 difflineat = '<a href="#{lineid}" id="{lineid}">{linenumber}</a> <span class="atline">{line|escape}</span>' | 91 difflineat = '<a href="#{lineid}" id="{lineid}">{linenumber}</a> <span class="atline">{line|escape}</span>' |
92 diffline = '<a href="#{lineid}" id="{lineid}">{linenumber}</a> {line|escape}' | 92 diffline = '<a href="#{lineid}" id="{lineid}">{linenumber}</a> {line|escape}' |
93 | 93 |
154 </a> | 154 </a> |
155 </td> | 155 </td> |
156 </tr>' | 156 </tr>' |
157 tags = ../paper/tags.tmpl | 157 tags = ../paper/tags.tmpl |
158 tagentry = ' | 158 tagentry = ' |
159 <tr class="tagEntry parity{parity}"> | 159 <tr class="tagEntry"> |
160 <td> | 160 <td> |
161 <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}"> | 161 <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}"> |
162 {tag|escape} | 162 {tag|escape} |
163 </a> | 163 </a> |
164 </td> | 164 </td> |
166 {node|short} | 166 {node|short} |
167 </td> | 167 </td> |
168 </tr>' | 168 </tr>' |
169 bookmarks = ../paper/bookmarks.tmpl | 169 bookmarks = ../paper/bookmarks.tmpl |
170 bookmarkentry = ' | 170 bookmarkentry = ' |
171 <tr class="tagEntry parity{parity}"> | 171 <tr class="tagEntry"> |
172 <td> | 172 <td> |
173 <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}"> | 173 <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}"> |
174 {bookmark|escape} | 174 {bookmark|escape} |
175 </a> | 175 </a> |
176 </td> | 176 </td> |
178 {node|short} | 178 {node|short} |
179 </td> | 179 </td> |
180 </tr>' | 180 </tr>' |
181 branches = ../paper/branches.tmpl | 181 branches = ../paper/branches.tmpl |
182 branchentry = ' | 182 branchentry = ' |
183 <tr class="tagEntry parity{parity}"> | 183 <tr class="tagEntry"> |
184 <td> | 184 <td> |
185 <a href="{url|urlescape}shortlog/{node|short}{sessionvars%urlparameter}" class="{status}"> | 185 <a href="{url|urlescape}shortlog/{node|short}{sessionvars%urlparameter}" class="{status}"> |
186 {branch|escape} | 186 {branch|escape} |
187 </a> | 187 </a> |
188 </td> | 188 </td> |
217 <th>child {rev}:</th> | 217 <th>child {rev}:</th> |
218 <td><a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td> | 218 <td><a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td> |
219 </tr>' | 219 </tr>' |
220 | 220 |
221 indexentry = ' | 221 indexentry = ' |
222 <tr class="parity{parity}"> | 222 <tr> |
223 <td><a href="{url|urlescape}{sessionvars%urlparameter}">{name|escape}</a></td> | 223 <td><a href="{url|urlescape}{sessionvars%urlparameter}">{name|escape}</a></td> |
224 <td>{description}</td> | 224 <td>{description}</td> |
225 <td>{contact|obfuscate}</td> | 225 <td>{contact|obfuscate}</td> |
226 <td class="age">{lastchange|rfc822date}</td> | 226 <td class="age">{lastchange|rfc822date}</td> |
227 <td class="indexlinks">{archives%indexarchiveentry}</td> | 227 <td class="indexlinks">{archives%indexarchiveentry}</td> |