##// END OF EJS Templates
coal: copy newer things from paper...
av6 -
r26244:399e970e default
parent child Browse files
Show More
@@ -73,32 +73,36 b' 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="source"><a href="#{lineid}" id="{lineid}">{linenumber}</a> {line|escape}</div>'
76 <span id="{lineid}">{strip(line|escape, '\r\n')}</span><a href="#{lineid}"></a>'
77 filelogentry = ../paper/filelogentry.tmpl
77 filelogentry = ../paper/filelogentry.tmpl
78
78
79 annotateline = '
79 annotateline = '
80 <tr>
80 <tr id="{lineid}">
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}#l{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}">{linenumber}</a> {line|escape}</td>
86 </tr>'
86 </tr>'
87
87
88 diffblock = '<div class="source bottomline"><pre>{lines}</pre></div>'
88 diffblock = '<div class="bottomline inc-lineno"><pre class="sourcelines wrap">{lines}</pre></div>'
89 difflineplus = '<a href="#{lineid}" id="{lineid}">{linenumber}</a> <span class="plusline">{line|escape}</span>'
89 difflineplus = '
90 difflineminus = '<a href="#{lineid}" id="{lineid}">{linenumber}</a> <span class="minusline">{line|escape}</span>'
90 <span id="{lineid}" class="plusline">{strip(line|escape, '\r\n')}</span><a href="#{lineid}"></a>'
91 difflineat = '<a href="#{lineid}" id="{lineid}">{linenumber}</a> <span class="atline">{line|escape}</span>'
91 difflineminus = '
92 diffline = '<a href="#{lineid}" id="{lineid}">{linenumber}</a> {line|escape}'
92 <span id="{lineid}" class="minusline">{strip(line|escape, '\r\n')}</span><a href="#{lineid}"></a>'
93 difflineat = '
94 <span id="{lineid}" class="atline">{strip(line|escape, '\r\n')}</span><a href="#{lineid}"></a>'
95 diffline = '
96 <span id="{lineid}">{strip(line|escape, '\r\n')}</span><a href="#{lineid}"></a>'
93
97
94 comparisonblock ='
98 comparisonblock ='
95 <tbody class="block">
99 <tbody class="block">
96 {lines}
100 {lines}
97 </tbody>'
101 </tbody>'
98 comparisonline = '
102 comparisonline = '
99 <tr>
103 <tr id="{lineid}">
100 <td class="source {type}"><a href="#{lineid}" id="{lineid}">{leftlinenumber}</a> {leftline|escape}</td>
104 <td class="source {type}"><a href="#{lineid}">{leftlinenumber}</a> {leftline|escape}</td>
101 <td class="source {type}"><a href="#{lineid}" id="{lineid}">{rightlinenumber}</a> {rightline|escape}</td>
105 <td class="source {type}"><a href="#{lineid}">{rightlinenumber}</a> {rightline|escape}</td>
102 </tr>'
106 </tr>'
103
107
104 changelogparent = '
108 changelogparent = '
@@ -107,6 +107,9 b' a { text-decoration:none; }'
107 .minusline { color: #dc143c; } /* crimson */
107 .minusline { color: #dc143c; } /* crimson */
108 .atline { color: purple; }
108 .atline { color: purple; }
109
109
110 .diffstat-table {
111 margin-top: 1em;
112 }
110 .diffstat-file {
113 .diffstat-file {
111 white-space: nowrap;
114 white-space: nowrap;
112 font-size: 90%;
115 font-size: 90%;
@@ -199,8 +202,6 b' h3 {'
199 .bigtable .description { }
202 .bigtable .description { }
200 .bigtable .description .base { font-size: 70%; float: right; line-height: 1.66; }
203 .bigtable .description .base { font-size: 70%; float: right; line-height: 1.66; }
201 .bigtable .node { width: 5em; font-family: monospace;}
204 .bigtable .node { width: 5em; font-family: monospace;}
202 .bigtable .lineno { width: 2em; text-align: right;}
203 .bigtable .lineno a { color: #999; font-size: smaller; font-family: monospace;}
204 .bigtable .permissions { width: 8em; text-align: left;}
205 .bigtable .permissions { width: 8em; text-align: left;}
205 .bigtable .size { width: 5em; text-align: right; }
206 .bigtable .size { width: 5em; text-align: right; }
206 .bigtable .annotate { text-align: right; }
207 .bigtable .annotate { text-align: right; }
@@ -218,13 +219,59 b' h3 {'
218 .source a { color: #999; font-size: smaller; font-family: monospace;}
219 .source a { color: #999; font-size: smaller; font-family: monospace;}
219 .bottomline { border-bottom: 1px solid #999; }
220 .bottomline { border-bottom: 1px solid #999; }
220
221
221 .sourcelines > div {
222 .sourcelines {
223 font-size: 90%;
224 position: relative;
225 counter-reset: lineno;
226 }
227
228 .wrap > span {
229 white-space: pre-wrap;
230 }
231
232 .linewraptoggle {
233 float: right;
234 }
235
236 .diffblocks { counter-reset: lineno; }
237 .diffblocks > div { counter-increment: lineno; }
238
239 .sourcelines > span {
222 display: inline-block;
240 display: inline-block;
241 box-sizing: border-box;
223 width: 100%;
242 width: 100%;
224 padding: 1px 0px;
243 padding: 1px 0px 1px 5em;
225 counter-increment: lineno;
244 counter-increment: lineno;
226 }
245 }
227
246
247 .sourcelines > span:before {
248 -moz-user-select: -moz-none;
249 -khtml-user-select: none;
250 -webkit-user-select: none;
251 -ms-user-select: none;
252 user-select: none;
253 display: inline-block;
254 margin-left: -5em;
255 width: 4em;
256 font-size: smaller;
257 color: #999;
258 text-align: right;
259 content: counters(lineno, ".");
260 float: left;
261 }
262
263 .sourcelines > span:target, tr:target td {
264 background-color: #bfdfff;
265 }
266
267 .sourcelines > a {
268 display: inline-block;
269 position: absolute;
270 left: 0px;
271 width: 4em;
272 height: 1em;
273 }
274
228 .fileline { font-family: monospace; }
275 .fileline { font-family: monospace; }
229 .fileline img { border: 0; }
276 .fileline img { border: 0; }
230
277
@@ -376,8 +376,8 b' Set up the repo'
376 annotate foo @ 1:<a href="/rev/a7c1559b7bba?style=coal">a7c1559b7bba</a>
376 annotate foo @ 1:<a href="/rev/a7c1559b7bba?style=coal">a7c1559b7bba</a>
377 <td class="author"><a href="/file/43c799df6e75/foo?style=coal">43c799df6e75</a> </td>
377 <td class="author"><a href="/file/43c799df6e75/foo?style=coal">43c799df6e75</a> </td>
378 <td class="author"><a href="/file/9d8c40cba617/foo?style=coal">9d8c40cba617</a> </td>
378 <td class="author"><a href="/file/9d8c40cba617/foo?style=coal">9d8c40cba617</a> </td>
379 <a href="/annotate/43c799df6e75/foo?style=coal#1"
379 <a href="/annotate/43c799df6e75/foo?style=coal#l1"
380 <a href="/annotate/a7c1559b7bba/foo?style=coal#2"
380 <a href="/annotate/a7c1559b7bba/foo?style=coal#l2"
381
381
382 $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'diff/xyzzy/foo?style=coal' | egrep $REVLINKS
382 $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'diff/xyzzy/foo?style=coal' | egrep $REVLINKS
383 <li><a href="/shortlog/xyzzy?style=coal">log</a></li>
383 <li><a href="/shortlog/xyzzy?style=coal">log</a></li>
General Comments 0
You need to be logged in to leave comments. Login now