comparison mercurial/templates/coal/map @ 26283:c450265b5611

coal: reuse all templates from paper/map by %including the file Before, coal/map simply had all the templates copied and pasted from paper/map file. It was easy to make a change to paper that would get into coal only partially and just sit there until something like 399e970e35c8 happened. Let's remove this duplication from coal/map by using %include to reuse templates from paper/map directly.
author Anton Shestakov <av6@dwimlabs.net>
date Fri, 18 Sep 2015 01:06:27 +0800
parents 399e970e35c8
children 5f86818c95e5
comparison
equal deleted inserted replaced
26282:436f5ab16079 26283:c450265b5611
1 default = 'shortlog' 1 %include paper/map
2 2
3 mimetype = 'text/html; charset={encoding}'
4 header = header.tmpl
5 footer = ../paper/footer.tmpl 3 footer = ../paper/footer.tmpl
6 search = ../paper/search.tmpl 4 search = ../paper/search.tmpl
7 5
8 changelog = ../paper/shortlog.tmpl 6 changelog = ../paper/shortlog.tmpl
9 shortlog = ../paper/shortlog.tmpl 7 shortlog = ../paper/shortlog.tmpl
11 graph = ../paper/graph.tmpl 9 graph = ../paper/graph.tmpl
12 10
13 help = ../paper/help.tmpl 11 help = ../paper/help.tmpl
14 helptopics = ../paper/helptopics.tmpl 12 helptopics = ../paper/helptopics.tmpl
15 13
16 helpentry = '
17 <tr><td>
18 <a href="{url|urlescape}help/{topic|escape}{sessionvars%urlparameter}">
19 {topic|escape}
20 </a>
21 </td><td>
22 {summary|escape}
23 </td></tr>'
24
25 naventry = '<a href="{url|urlescape}log/{node|short}{sessionvars%urlparameter}">{label|escape}</a> '
26 navshortentry = '<a href="{url|urlescape}shortlog/{node|short}{sessionvars%urlparameter}">{label|escape}</a> '
27 navgraphentry = '<a href="{url|urlescape}graph/{node|short}{sessionvars%urlparameter}">{label|escape}</a> '
28 filenaventry = '<a href="{url|urlescape}log/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{label|escape}</a> '
29 filedifflink = '<a href="{url|urlescape}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{file|escape}</a> '
30 filenodelink = '<a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{file|escape}</a> '
31 filenolink = '{file|escape} '
32 fileellipses = '...'
33 diffstatlink = ../paper/diffstat.tmpl 14 diffstatlink = ../paper/diffstat.tmpl
34 diffstatnolink = ../paper/diffstat.tmpl 15 diffstatnolink = ../paper/diffstat.tmpl
35 changelogentry = ../paper/shortlogentry.tmpl 16 changelogentry = ../paper/shortlogentry.tmpl
36 searchentry = ../paper/shortlogentry.tmpl 17 searchentry = ../paper/shortlogentry.tmpl
37 changeset = ../paper/changeset.tmpl 18 changeset = ../paper/changeset.tmpl
38 manifest = ../paper/manifest.tmpl 19 manifest = ../paper/manifest.tmpl
39 20
40 nav = '{before%naventry} {after%naventry}'
41 navshort = '{before%navshortentry}{after%navshortentry}'
42 navgraph = '{before%navgraphentry}{after%navgraphentry}'
43 filenav = '{before%filenaventry}{after%filenaventry}'
44
45 direntry = '
46 <tr class="fileline">
47 <td class="name">
48 <a href="{url|urlescape}file/{symrev}{path|urlescape}{sessionvars%urlparameter}">
49 <img src="{staticurl|urlescape}coal-folder.png" alt="dir."/> {basename|escape}/
50 </a>
51 <a href="{url|urlescape}file/{symrev}{path|urlescape}/{emptydirs|urlescape}{sessionvars%urlparameter}">
52 {emptydirs|escape}
53 </a>
54 </td>
55 <td class="size"></td>
56 <td class="permissions">drwxr-xr-x</td>
57 </tr>'
58
59 fileentry = '
60 <tr class="fileline">
61 <td class="filename">
62 <a href="{url|urlescape}file/{symrev}/{file|urlescape}{sessionvars%urlparameter}">
63 <img src="{staticurl|urlescape}coal-file.png" alt="file"/> {basename|escape}
64 </a>
65 </td>
66 <td class="size">{size}</td>
67 <td class="permissions">{permissions|permissions}</td>
68 </tr>'
69
70 filerevision = ../paper/filerevision.tmpl 21 filerevision = ../paper/filerevision.tmpl
71 fileannotate = ../paper/fileannotate.tmpl 22 fileannotate = ../paper/fileannotate.tmpl
72 filediff = ../paper/filediff.tmpl 23 filediff = ../paper/filediff.tmpl
73 filecomparison = ../paper/filecomparison.tmpl 24 filecomparison = ../paper/filecomparison.tmpl
74 filelog = ../paper/filelog.tmpl 25 filelog = ../paper/filelog.tmpl
75 fileline = '
76 <span id="{lineid}">{strip(line|escape, '\r\n')}</span><a href="#{lineid}"></a>'
77 filelogentry = ../paper/filelogentry.tmpl 26 filelogentry = ../paper/filelogentry.tmpl
78 27
79 annotateline = ' 28 tags = ../paper/tags.tmpl
80 <tr id="{lineid}"> 29 bookmarks = ../paper/bookmarks.tmpl
81 <td class="annotate"> 30 branches = ../paper/branches.tmpl
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>
84 </td>
85 <td class="source"><a href="#{lineid}">{linenumber}</a> {line|escape}</td>
86 </tr>'
87 31
88 diffblock = '<div class="bottomline inc-lineno"><pre class="sourcelines wrap">{lines}</pre></div>'
89 difflineplus = '
90 <span id="{lineid}" class="plusline">{strip(line|escape, '\r\n')}</span><a href="#{lineid}"></a>'
91 difflineminus = '
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>'
97
98 comparisonblock ='
99 <tbody class="block">
100 {lines}
101 </tbody>'
102 comparisonline = '
103 <tr id="{lineid}">
104 <td class="source {type}"><a href="#{lineid}">{leftlinenumber}</a> {leftline|escape}</td>
105 <td class="source {type}"><a href="#{lineid}">{rightlinenumber}</a> {rightline|escape}</td>
106 </tr>'
107
108 changelogparent = '
109 <tr>
110 <th class="parent">parent {rev}:</th>
111 <td class="parent"><a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td>
112 </tr>'
113
114 changesetparent = '<a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a> '
115
116 changesetparentdiff = '
117 {changesetparent}
118 {ifeq(node, basenode, '(current diff)', '({difffrom})')}'
119
120 difffrom = '<a href="{url|urlescape}rev/{node|short}:{originalnode|short}{sessionvars%urlparameter}">diff</a>'
121
122 filerevparent = '<a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{rename%filerename}{node|short}</a> '
123 filerevchild = '<a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a> '
124
125 filerename = '{file|escape}@'
126 filelogrename = '
127 <span class="base">
128 base
129 <a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">
130 {file|escape}@{node|short}
131 </a>
132 </span>'
133 fileannotateparent = '
134 <tr>
135 <td class="metatag">parent:</td>
136 <td>
137 <a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">
138 {rename%filerename}{node|short}
139 </a>
140 </td>
141 </tr>'
142 changesetchild = ' <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a>'
143 changelogchild = '
144 <tr>
145 <th class="child">child</th>
146 <td class="child">
147 <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">
148 {node|short}
149 </a>
150 </td>
151 </tr>'
152 fileannotatechild = '
153 <tr>
154 <td class="metatag">child:</td>
155 <td>
156 <a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">
157 {node|short}
158 </a>
159 </td>
160 </tr>'
161 tags = ../paper/tags.tmpl
162 tagentry = '
163 <tr class="tagEntry">
164 <td>
165 <a href="{url|urlescape}rev/{tag|revescape}{sessionvars%urlparameter}">
166 {tag|escape}
167 </a>
168 </td>
169 <td class="node">
170 <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">
171 {node|short}
172 </a>
173 </td>
174 </tr>'
175 bookmarks = ../paper/bookmarks.tmpl
176 bookmarkentry = '
177 <tr class="tagEntry">
178 <td>
179 <a href="{url|urlescape}rev/{bookmark|revescape}{sessionvars%urlparameter}">
180 {bookmark|escape}
181 </a>
182 </td>
183 <td class="node">
184 <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">
185 {node|short}
186 </a>
187 </td>
188 </tr>'
189 branches = ../paper/branches.tmpl
190 branchentry = '
191 <tr class="tagEntry">
192 <td>
193 <a href="{url|urlescape}shortlog/{branch|revescape}{sessionvars%urlparameter}" class="{status}">
194 {branch|escape}
195 </a>
196 </td>
197 <td class="node">
198 <a href="{url|urlescape}shortlog/{node|short}{sessionvars%urlparameter}" class="{status}">
199 {node|short}
200 </a>
201 </td>
202 </tr>'
203 changelogtag = '<span class="tag">{name|escape}</span> '
204 changesettag = '<span class="tag">{tag|escape}</span> '
205 changesetbookmark = '<span class="tag">{bookmark|escape}</span> '
206 changelogbranchhead = '<span class="branchhead">{name|escape}</span> '
207 changelogbranchname = '<span class="branchname">{name|escape}</span> '
208
209 filediffparent = '
210 <tr>
211 <th class="parent">parent {rev}:</th>
212 <td class="parent"><a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td>
213 </tr>'
214 filelogparent = '
215 <tr>
216 <th>parent {rev}:</th>
217 <td><a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td>
218 </tr>'
219 filediffchild = '
220 <tr>
221 <th class="child">child {rev}:</th>
222 <td class="child"><a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a>
223 </td>
224 </tr>'
225 filelogchild = '
226 <tr>
227 <th>child {rev}:</th>
228 <td><a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td>
229 </tr>'
230
231 indexentry = '
232 <tr>
233 <td><a href="{url|urlescape}{sessionvars%urlparameter}">{name|escape}</a></td>
234 <td>{description}</td>
235 <td>{contact|obfuscate}</td>
236 <td class="age">{lastchange|rfc822date}</td>
237 <td class="indexlinks">{archives%indexarchiveentry}</td>
238 </tr>\n'
239 indexarchiveentry = '<a href="{url|urlescape}archive/{node|short}{extension|urlescape}">&nbsp;&darr;{type|escape}</a>'
240 index = ../paper/index.tmpl 32 index = ../paper/index.tmpl
241 archiveentry = '
242 <li>
243 <a href="{url|urlescape}archive/{symrev}{extension|urlescape}{ifeq(path,'/','',path|urlescape)}">{type|escape}</a>
244 </li>'
245 notfound = ../paper/notfound.tmpl 33 notfound = ../paper/notfound.tmpl
246 error = ../paper/error.tmpl 34 error = ../paper/error.tmpl
247 urlparameter = '{separator}{name}={value|urlescape}'
248 hiddenformentry = '<input type="hidden" name="{name}" value="{value|escape}" />'
249 breadcrumb = '&gt; <a href="{url|urlescape}">{name|escape}</a> '
250
251 searchhint = 'Find changesets by keywords (author, files, the commit message), revision
252 number or hash, or <a href="{url|urlescape}help/revsets">revset expression</a>.'