##// END OF EJS Templates
spartan: make different blocks of annotated lines have different colors
av6 -
r29575:1cc5a918 default
parent child Browse files
Show More
@@ -1,206 +1,206 b''
1 default = 'shortlog'
1 default = 'shortlog'
2 mimetype = 'text/html; charset={encoding}'
2 mimetype = 'text/html; charset={encoding}'
3 header = header.tmpl
3 header = header.tmpl
4 footer = footer.tmpl
4 footer = footer.tmpl
5 search = search.tmpl
5 search = search.tmpl
6 changelog = changelog.tmpl
6 changelog = changelog.tmpl
7 shortlog = shortlog.tmpl
7 shortlog = shortlog.tmpl
8 shortlogentry = shortlogentry.tmpl
8 shortlogentry = shortlogentry.tmpl
9 graph = graph.tmpl
9 graph = graph.tmpl
10 naventry = '<a href="{url|urlescape}log/{node|short}{sessionvars%urlparameter}">{label|escape}</a> '
10 naventry = '<a href="{url|urlescape}log/{node|short}{sessionvars%urlparameter}">{label|escape}</a> '
11 navshortentry = '<a href="{url|urlescape}shortlog/{node|short}{sessionvars%urlparameter}">{label|escape}</a> '
11 navshortentry = '<a href="{url|urlescape}shortlog/{node|short}{sessionvars%urlparameter}">{label|escape}</a> '
12 navgraphentry = '<a href="{url|urlescape}graph/{node|short}{sessionvars%urlparameter}">{label|escape}</a> '
12 navgraphentry = '<a href="{url|urlescape}graph/{node|short}{sessionvars%urlparameter}">{label|escape}</a> '
13 filenaventry = '<a href="{url|urlescape}log/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{label|escape}</a> '
13 filenaventry = '<a href="{url|urlescape}log/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{label|escape}</a> '
14 filedifflink = '<a href="{url|urlescape}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{file|escape}</a> '
14 filedifflink = '<a href="{url|urlescape}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{file|escape}</a> '
15 filenodelink = '<a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{file|escape}</a> '
15 filenodelink = '<a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{file|escape}</a> '
16 filenolink = '{file|escape} '
16 filenolink = '{file|escape} '
17 fileellipses = '...'
17 fileellipses = '...'
18 changelogentry = changelogentry.tmpl
18 changelogentry = changelogentry.tmpl
19 searchentry = changelogentry.tmpl
19 searchentry = changelogentry.tmpl
20 changeset = changeset.tmpl
20 changeset = changeset.tmpl
21 manifest = manifest.tmpl
21 manifest = manifest.tmpl
22
22
23 nav = '{before%naventry} {after%naventry}'
23 nav = '{before%naventry} {after%naventry}'
24 navshort = '{before%navshortentry}{after%navshortentry}'
24 navshort = '{before%navshortentry}{after%navshortentry}'
25 navgraph = '{before%navgraphentry}{after%navgraphentry}'
25 navgraph = '{before%navgraphentry}{after%navgraphentry}'
26 filenav = '{before%filenaventry}{after%filenaventry}'
26 filenav = '{before%filenaventry}{after%filenaventry}'
27
27
28 direntry = '
28 direntry = '
29 <tr class="parity{parity}">
29 <tr class="parity{parity}">
30 <td><tt>drwxr-xr-x</tt>&nbsp;
30 <td><tt>drwxr-xr-x</tt>&nbsp;
31 <td>&nbsp;
31 <td>&nbsp;
32 <td>&nbsp;
32 <td>&nbsp;
33 <td>
33 <td>
34 <a href="{url|urlescape}file/{symrev}{path|urlescape}{sessionvars%urlparameter}">{basename|escape}/</a>
34 <a href="{url|urlescape}file/{symrev}{path|urlescape}{sessionvars%urlparameter}">{basename|escape}/</a>
35 <a href="{url|urlescape}file/{symrev}{path|urlescape}/{emptydirs|urlescape}{sessionvars%urlparameter}">
35 <a href="{url|urlescape}file/{symrev}{path|urlescape}/{emptydirs|urlescape}{sessionvars%urlparameter}">
36 {emptydirs|urlescape}
36 {emptydirs|urlescape}
37 </a>'
37 </a>'
38
38
39 fileentry = '
39 fileentry = '
40 <tr class="parity{parity}">
40 <tr class="parity{parity}">
41 <td><tt>{permissions|permissions}</tt>&nbsp;
41 <td><tt>{permissions|permissions}</tt>&nbsp;
42 <td align=right><tt class="date">{date|isodate}</tt>&nbsp;
42 <td align=right><tt class="date">{date|isodate}</tt>&nbsp;
43 <td align=right><tt>{size}</tt>&nbsp;
43 <td align=right><tt>{size}</tt>&nbsp;
44 <td><a href="{url|urlescape}file/{symrev}/{file|urlescape}{sessionvars%urlparameter}">{basename|escape}</a>'
44 <td><a href="{url|urlescape}file/{symrev}/{file|urlescape}{sessionvars%urlparameter}">{basename|escape}</a>'
45
45
46 filerevision = filerevision.tmpl
46 filerevision = filerevision.tmpl
47 fileannotate = fileannotate.tmpl
47 fileannotate = fileannotate.tmpl
48 filediff = filediff.tmpl
48 filediff = filediff.tmpl
49 filelog = filelog.tmpl
49 filelog = filelog.tmpl
50 fileline = '<div class="parity{parity}"><a class="lineno" href="#{lineid}" id="{lineid}">{linenumber}</a>&nbsp;{line|escape}</div>'
50 fileline = '<div class="parity{parity}"><a class="lineno" href="#{lineid}" id="{lineid}">{linenumber}</a>&nbsp;{line|escape}</div>'
51 filelogentry = filelogentry.tmpl
51 filelogentry = filelogentry.tmpl
52
52
53 # The &nbsp; ensures that all table cells have content (even if there
53 # The &nbsp; ensures that all table cells have content (even if there
54 # is an empty line in the annotated file), which in turn ensures that
54 # is an empty line in the annotated file), which in turn ensures that
55 # all table rows have equal height.
55 # all table rows have equal height.
56 annotateline = '
56 annotateline = '
57 <tr class="parity{parity}{ifeq(node, originalnode, ' thisrev')}">
57 <tr class="parity{parity}{ifeq(node, originalnode, ' thisrev')}">
58 <td class="annotate">
58 <td class="annotate parity{blockparity}">
59 {if(blockhead,
59 {if(blockhead,
60 '<a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}#l{targetline}">
60 '<a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}#l{targetline}">
61 {rev}
61 {rev}
62 </a>')}
62 </a>')}
63 <div class="annotate-info">
63 <div class="annotate-info">
64 <div>
64 <div>
65 <a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}#l{targetline}">
65 <a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}#l{targetline}">
66 {node|short}</a>
66 {node|short}</a>
67 {desc|escape|firstline}
67 {desc|escape|firstline}
68 </div>
68 </div>
69 <div><em>{author|obfuscate}</em></div>
69 <div><em>{author|obfuscate}</em></div>
70 <div>parents: {parents%annotateparent}</div>
70 <div>parents: {parents%annotateparent}</div>
71 <a href="{url|urlescape}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">diff</a>
71 <a href="{url|urlescape}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">diff</a>
72 <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">changeset</a>
72 <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">changeset</a>
73 </div>
73 </div>
74 </td>
74 </td>
75 <td>
75 <td>
76 <a class="lineno" href="#{lineid}" id="{lineid}">{linenumber}</a>
76 <a class="lineno" href="#{lineid}" id="{lineid}">{linenumber}</a>
77 </td>
77 </td>
78 <td><pre>&nbsp;{line|escape}</pre></td>
78 <td><pre>&nbsp;{line|escape}</pre></td>
79 </tr>'
79 </tr>'
80 annotateparent = '
80 annotateparent = '
81 <a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{rev}</a>'
81 <a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{rev}</a>'
82 difflineplus = '<span class="plusline"><a class="lineno" href="#{lineid}" id="{lineid}">{linenumber}</a>{line|escape}</span>'
82 difflineplus = '<span class="plusline"><a class="lineno" href="#{lineid}" id="{lineid}">{linenumber}</a>{line|escape}</span>'
83 difflineminus = '<span class="minusline"><a class="lineno" href="#{lineid}" id="{lineid}">{linenumber}</a>{line|escape}</span>'
83 difflineminus = '<span class="minusline"><a class="lineno" href="#{lineid}" id="{lineid}">{linenumber}</a>{line|escape}</span>'
84 difflineat = '<span class="atline"><a class="lineno" href="#{lineid}" id="{lineid}">{linenumber}</a>{line|escape}</span>'
84 difflineat = '<span class="atline"><a class="lineno" href="#{lineid}" id="{lineid}">{linenumber}</a>{line|escape}</span>'
85 diffline = '<a class="lineno" href="#{lineid}" id="{lineid}">{linenumber}</a>{line|escape}'
85 diffline = '<a class="lineno" href="#{lineid}" id="{lineid}">{linenumber}</a>{line|escape}'
86 changesetlink = '<a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a>'
86 changesetlink = '<a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a>'
87 changelogparent = '
87 changelogparent = '
88 <tr>
88 <tr>
89 <th class="parent">parent {rev}:</th>
89 <th class="parent">parent {rev}:</th>
90 <td class="parent">
90 <td class="parent">
91 {changesetlink}
91 {changesetlink}
92 </td>
92 </td>
93 </tr>'
93 </tr>'
94 changesetparent = '
94 changesetparent = '
95 <tr>
95 <tr>
96 <th class="parent">parent {rev}:</th>
96 <th class="parent">parent {rev}:</th>
97 <td class="parent">{changesetlink}</td>
97 <td class="parent">{changesetlink}</td>
98 </tr>'
98 </tr>'
99 changesetparentdiff = '
99 changesetparentdiff = '
100 <tr>
100 <tr>
101 <th class="parent">parent {rev}:</th>
101 <th class="parent">parent {rev}:</th>
102 <td class="parent">{changesetlink} {ifeq(node, basenode, '(current diff)', '({difffrom})')}</td>
102 <td class="parent">{changesetlink} {ifeq(node, basenode, '(current diff)', '({difffrom})')}</td>
103 </tr>'
103 </tr>'
104 difffrom = '<a href="{url|urlescape}rev/{node|short}:{originalnode|short}{sessionvars%urlparameter}">diff</a>'
104 difffrom = '<a href="{url|urlescape}rev/{node|short}:{originalnode|short}{sessionvars%urlparameter}">diff</a>'
105 filerevparent = '
105 filerevparent = '
106 <tr>
106 <tr>
107 <td class="metatag">parent:</td>
107 <td class="metatag">parent:</td>
108 <td>
108 <td>
109 <a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">
109 <a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">
110 {rename%filerename}{node|short}
110 {rename%filerename}{node|short}
111 </a>
111 </a>
112 </td>
112 </td>
113 </tr>'
113 </tr>'
114 filerename = '{file|escape}@'
114 filerename = '{file|escape}@'
115 filelogrename = '
115 filelogrename = '
116 <tr>
116 <tr>
117 <th>base:</th>
117 <th>base:</th>
118 <td>
118 <td>
119 <a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">
119 <a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">
120 {file|escape}@{node|short}
120 {file|escape}@{node|short}
121 </a>
121 </a>
122 </td>
122 </td>
123 </tr>'
123 </tr>'
124 fileannotateparent = '
124 fileannotateparent = '
125 <tr>
125 <tr>
126 <td class="metatag">parent:</td>
126 <td class="metatag">parent:</td>
127 <td>
127 <td>
128 <a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">
128 <a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">
129 {rename%filerename}{node|short}
129 {rename%filerename}{node|short}
130 </a>
130 </a>
131 </td>
131 </td>
132 </tr>'
132 </tr>'
133 changesetchild = '
133 changesetchild = '
134 <tr>
134 <tr>
135 <th class="child">child {rev}:</th>
135 <th class="child">child {rev}:</th>
136 <td class="child"><a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td>
136 <td class="child"><a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td>
137 </tr>'
137 </tr>'
138 changelogchild = '
138 changelogchild = '
139 <tr>
139 <tr>
140 <th class="child">child {rev}:</th>
140 <th class="child">child {rev}:</th>
141 <td class="child"><a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td>
141 <td class="child"><a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td>
142 </tr>'
142 </tr>'
143 filerevchild = '
143 filerevchild = '
144 <tr>
144 <tr>
145 <td class="metatag">child:</td>
145 <td class="metatag">child:</td>
146 <td><a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td>
146 <td><a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td>
147 </tr>'
147 </tr>'
148 fileannotatechild = '
148 fileannotatechild = '
149 <tr>
149 <tr>
150 <td class="metatag">child:</td>
150 <td class="metatag">child:</td>
151 <td><a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td>
151 <td><a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td>
152 </tr>'
152 </tr>'
153 tags = tags.tmpl
153 tags = tags.tmpl
154 tagentry = '
154 tagentry = '
155 <li class="tagEntry parity{parity}">
155 <li class="tagEntry parity{parity}">
156 <tt class="node">{node}</tt>
156 <tt class="node">{node}</tt>
157 <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{tag|escape}</a>
157 <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{tag|escape}</a>
158 </li>'
158 </li>'
159 branches = branches.tmpl
159 branches = branches.tmpl
160 branchentry = '
160 branchentry = '
161 <li class="tagEntry parity{parity}">
161 <li class="tagEntry parity{parity}">
162 <tt class="node">{node}</tt>
162 <tt class="node">{node}</tt>
163 <a href="{url|urlescape}shortlog/{node|short}{sessionvars%urlparameter}" class="{status}">{branch|escape}</a>
163 <a href="{url|urlescape}shortlog/{node|short}{sessionvars%urlparameter}" class="{status}">{branch|escape}</a>
164 </li>'
164 </li>'
165 diffblock = '<pre class="parity{parity}">{lines}</pre>'
165 diffblock = '<pre class="parity{parity}">{lines}</pre>'
166 changelogtag = '<tr><th class="tag">tag:</th><td class="tag">{tag|escape}</td></tr>'
166 changelogtag = '<tr><th class="tag">tag:</th><td class="tag">{tag|escape}</td></tr>'
167 changesettag = '<tr><th class="tag">tag:</th><td class="tag">{tag|escape}</td></tr>'
167 changesettag = '<tr><th class="tag">tag:</th><td class="tag">{tag|escape}</td></tr>'
168 filediffparent = '
168 filediffparent = '
169 <tr>
169 <tr>
170 <th class="parent">parent {rev}:</th>
170 <th class="parent">parent {rev}:</th>
171 <td class="parent"><a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td>
171 <td class="parent"><a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td>
172 </tr>'
172 </tr>'
173 filelogparent = '
173 filelogparent = '
174 <tr>
174 <tr>
175 <th>parent {rev}:</th>
175 <th>parent {rev}:</th>
176 <td><a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td>
176 <td><a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td>
177 </tr>'
177 </tr>'
178 filediffchild = '
178 filediffchild = '
179 <tr>
179 <tr>
180 <th class="child">child {rev}:</th>
180 <th class="child">child {rev}:</th>
181 <td class="child"><a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td>
181 <td class="child"><a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td>
182 </tr>'
182 </tr>'
183 filelogchild = '
183 filelogchild = '
184 <tr>
184 <tr>
185 <th>child {rev}:</th>
185 <th>child {rev}:</th>
186 <td><a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td>
186 <td><a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td>
187 </tr>'
187 </tr>'
188 indexentry = '
188 indexentry = '
189 <tr class="parity{parity}">
189 <tr class="parity{parity}">
190 <td><a href="{url|urlescape}{sessionvars%urlparameter}">{name|escape}</a></td>
190 <td><a href="{url|urlescape}{sessionvars%urlparameter}">{name|escape}</a></td>
191 <td>{description}</td>
191 <td>{description}</td>
192 <td>{contact|obfuscate}</td>
192 <td>{contact|obfuscate}</td>
193 <td class="age">{lastchange|rfc822date}</td>
193 <td class="age">{lastchange|rfc822date}</td>
194 <td class="indexlinks">
194 <td class="indexlinks">
195 <a href="{url|urlescape}rss-log">RSS</a>
195 <a href="{url|urlescape}rss-log">RSS</a>
196 <a href="{url|urlescape}atom-log">Atom</a>
196 <a href="{url|urlescape}atom-log">Atom</a>
197 {archives%archiveentry}
197 {archives%archiveentry}
198 </td>
198 </td>
199 </tr>'
199 </tr>'
200 index = index.tmpl
200 index = index.tmpl
201 archiveentry = '<a href="{url|urlescape}archive/{symrev}{extension|urlescape}">{type|escape}</a> '
201 archiveentry = '<a href="{url|urlescape}archive/{symrev}{extension|urlescape}">{type|escape}</a> '
202 notfound = notfound.tmpl
202 notfound = notfound.tmpl
203 error = error.tmpl
203 error = error.tmpl
204 urlparameter = '{separator}{name}={value|urlescape}'
204 urlparameter = '{separator}{name}={value|urlescape}'
205 hiddenformentry = '<input type="hidden" name="{name}" value="{value|escape}" />'
205 hiddenformentry = '<input type="hidden" name="{name}" value="{value|escape}" />'
206 breadcrumb = '&gt; <a href="{url|urlescape}">{name|escape}</a> '
206 breadcrumb = '&gt; <a href="{url|urlescape}">{name|escape}</a> '
General Comments 0
You need to be logged in to leave comments. Login now