Comparison

map @ 0:2f78b9100113 draft

Init.
author Trần H. Trung <xmpp:trần.h.trung@trung.fun>
date Mon, 10 Jul 2023 23:41:04 +0700
child 1:7dde48d11103
comparison
equal deleted inserted replaced
-1:000000000000 0:2f78b9100113
1 default = 'graph'
2
3 mimetype = 'text/html; charset={encoding}'
4 header = header.tmpl
5 footer = footer.tmpl
6 search = search.tmpl
7
8 changelog = shortlog.tmpl
9 shortlog = shortlog.tmpl
10 shortlogentry = shortlogentry.tmpl
11 graph = graph.tmpl
12 graphentry = graphentry.tmpl
13 help = help.tmpl
14 helptopics = helptopics.tmpl
15
16 helpentry = '
17 <tr><td>
18 <a href="{url|urlescape}help/{topic|escape}{sessionvars%urlparameter}">
19 {if(basename, '{basename|escape}', '{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 = diffstat.tmpl
34 diffstatnolink = diffstat.tmpl
35 changelogentry = shortlogentry.tmpl
36 changeset = changeset.tmpl
37 manifest = manifest.tmpl
38
39 nav = '{before%naventry} {after%naventry}'
40 navshort = '{before%navshortentry}{after%navshortentry}'
41 navgraph = '{before%navgraphentry}{after%navgraphentry}'
42 filenav = '{before%filenaventry}{after%filenaventry}'
43
44 updirentry = '
45 <tr class="fileline">
46 <td class="name">
47 <a href="{url|urlescape}file/{symrev}{up|urlescape}{sessionvars%urlparameter}">[up]</a>
48 </td>
49 <td class="size"></td>
50 <td class="permissions">drwxr-xr-x</td>
51 </tr>'
52
53 direntry = '
54 <tr class="fileline">
55 <td class="name">
56 <a href="{url|urlescape}file/{symrev}{path|urlescape}{sessionvars%urlparameter}">
57 <img src="{staticurl|urlescape}coal-folder.png" alt="dir."/> {basename|escape}/
58 </a>
59 <a href="{url|urlescape}file/{symrev}{path|urlescape}/{emptydirs|urlescape}{sessionvars%urlparameter}">
60 {emptydirs|escape}
61 </a>
62 </td>
63 <td class="size"></td>
64 <td class="permissions">drwxr-xr-x</td>
65 </tr>'
66
67 fileentry = '
68 <tr class="fileline">
69 <td class="filename">
70 <a href="{url|urlescape}file/{symrev}/{file|urlescape}{sessionvars%urlparameter}">
71 <img src="{staticurl|urlescape}coal-file.png" alt="file"/> {basename|escape}
72 </a>
73 </td>
74 <td class="size">{size}</td>
75 <td class="permissions">{permissions|permissions}</td>
76 </tr>'
77
78 filerevision = filerevision.tmpl
79 fileannotate = fileannotate.tmpl
80 filediff = filediff.tmpl
81 filecomparison = filecomparison.tmpl
82 filelog = filelog.tmpl
83 fileline = '
84 <span id="{lineid}">{strip(line|escape, '\r\n')}</span><a href="#{lineid}"></a>'
85 filelogentry = filelogentry.tmpl
86
87 annotateline = '
88 <tr id="{lineid}"{ifeq(node, originalnode, ' class="thisrev"')}>
89 <td class="annotate parity{blockparity}">
90 {if(blockhead,
91 '<a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}#l{targetline}">
92 {rev}
93 </a>')}
94 <div class="annotate-info">
95 <div>
96 <a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}#l{targetline}">
97 {node|short}</a>
98 {desc|escape|firstline}
99 </div>
100 <div><em>{author|obfuscate}</em></div>
101 <div>parents: {parents%annotateparent}</div>
102 <a href="{url|urlescape}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">diff</a>
103 <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">changeset</a>
104 </div>
105 </td>
106 <td class="source followlines-btn-parent"><a href="#{lineid}">{linenumber}</a> {line|escape}</td>
107 </tr>'
108 annotateparent = '
109 <a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{rev}</a>'
110 diffblock = '<div class="bottomline inc-lineno"><pre class="sourcelines wrap">{lines}</pre></div>'
111 difflineplus = '
112 <span id="{lineid}" class="plusline">{strip(line|escape, '\r\n')}</span><a href="#{lineid}"></a>'
113 difflineminus = '
114 <span id="{lineid}" class="minusline">{strip(line|escape, '\r\n')}</span><a href="#{lineid}"></a>'
115 difflineat = '
116 <span id="{lineid}" class="atline">{strip(line|escape, '\r\n')}</span><a href="#{lineid}"></a>'
117 diffline = '
118 <span id="{lineid}">{strip(line|escape, '\r\n')}</span><a href="#{lineid}"></a>'
119
120 comparisonblock ='
121 <tbody class="block">
122 {lines}
123 </tbody>'
124 comparisonline = '
125 <tr id="{lineid}">
126 <td class="source {type}"><a href="#{lineid}">{leftlinenumber}</a> {leftline|escape}</td>
127 <td class="source {type}"><a href="#{lineid}">{rightlinenumber}</a> {rightline|escape}</td>
128 </tr>'
129
130 changesetparent = ' {rev}:<a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a> '
131
132 changesetparentdiff = '
133 {changesetparent}
134 {ifeq(node, basenode, '(current diff)', '({difffrom})')}'
135
136 difffrom = '<a href="{url|urlescape}rev/{node|short}:{originalnode|short}{sessionvars%urlparameter}">diff</a>'
137
138 filerename = '{file|escape}@'
139 filelogrename = '
140 <span class="base">
141 base
142 <a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">
143 {file|escape}@{node|short}
144 </a>
145 </span>'
146 tags = tags.tmpl
147 tagentry = '
148 <tr class="tagEntry">
149 <td>
150 <a href="{url|urlescape}rev/{tag|revescape}{sessionvars%urlparameter}">
151 {tag|escape}
152 </a>
153 </td>
154 <td class="node">
155 <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">
156 {node|short}
157 </a>
158 </td>
159 </tr>'
160 bookmarks = bookmarks.tmpl
161 bookmarkentry = '
162 <tr class="tagEntry">
163 <td>
164 <a href="{url|urlescape}rev/{bookmark|revescape}{sessionvars%urlparameter}">
165 {bookmark|escape}
166 </a>
167 </td>
168 <td class="node">
169 <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">
170 {node|short}
171 </a>
172 </td>
173 </tr>'
174 branches = branches.tmpl
175 branchentry = '
176 <tr class="tagEntry">
177 <td>
178 <a href="{url|urlescape}shortlog/{branch|revescape}{sessionvars%urlparameter}" class="{status}">
179 {branch|escape}
180 </a>
181 </td>
182 <td class="node">
183 <a href="{url|urlescape}shortlog/{node|short}{sessionvars%urlparameter}" class="{status}">
184 {node|short}
185 </a>
186 </td>
187 </tr>'
188 phasetag = '{ifeq(phase, 'public', '', '<span class="phase">{phase|escape}</span> ')}'
189 obsoletetag = '{if(obsolete, '<span class="obsolete">obsolete</span> ')}'
190 instabilitytag = '<span class="instability">{instability|escape}</span> '
191 changelogtag = '<span class="tag">{name|escape}</span> '
192 changesettag = '<span class="tag">{tag|escape}</span> '
193 changesetbookmark = '<span class="tag">{bookmark|escape}</span> '
194 changelogbranchhead = '<span class="branchhead">{name|escape}</span> '
195 changelogbranchname = '<span class="branchname">{name|escape}</span> '
196 alltags = '{phasetag}{obsoletetag}{instabilities%instabilitytag}{inbranch%changelogbranchname}{branches%changelogbranchhead}{tags%changelogtag}{bookmarks%changelogtag}'
197
198 successorlink = '<a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a> '
199 obsfatesuccessors = '{if(successors, ' as ')}{successors%successorlink}'
200 obsfateverb = '{obsfateverb(successors, markers)}'
201 obsfateoperations = '{if(obsfateoperations(markers), ' using {join(obsfateoperations(markers), ', ')}')}'
202 obsfateusers = '{if(obsfateusers(markers), ' by {join(obsfateusers(markers)%'{user|obfuscate}', ', ')}')}'
203 obsfatedate = '{if(obsfatedate(markers), ' {ifeq(min(obsfatedate(markers)), max(obsfatedate(markers)), '<span class="age">{min(obsfatedate(markers))|rfc822date}</span>', 'between <span class="age">{min(obsfatedate(markers))|rfc822date}</span> and <span class="age">{max(obsfatedate(markers))|rfc822date}</span>')}')}'
204 obsfateentry = '{obsfateverb}{obsfateoperations}{obsfatesuccessors}{obsfateusers}{obsfatedate}'
205 instabilitychangesetlink = '<a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a>'
206 divergentnode = '{instabilitychangesetlink} ({phase})'
207 whyunstableentry = '{instability}: {if(divergentnodes, divergentnodes%divergentnode)} {reason} {instabilitychangesetlink}'
208
209 changesetchild = ' {rev}:<a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a>'
210
211 filerevparent = '
212 <tr>
213 <th class="author">parent</th>
214 <td>{rev}:<a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{rename%filerename}{node|short}</a>
215 </tr>'
216 filerevchild = '
217 <tr>
218 <th class="author">child</th>
219 <td>{rev}:<a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a>
220 </tr>'
221
222 fileannotateparent = '
223 <tr>
224 <th class="author">parent</th>
225 <td>{rev}:<a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{rename%filerename}{node|short}</a></td>
226 </tr>'
227 fileannotatechild = '
228 <tr>
229 <th class="author">child</th>
230 <td>{rev}:<a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td>
231 </tr>'
232
233 filecomparisonparent = '
234 <tr>
235 <th class="author">parent</th>
236 <td>{rev}:<a href="{url|urlescape}comparison/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{rename%filerename}{node|short}</a></td>
237 </tr>'
238 filecomparisonchild = '
239 <tr>
240 <th class="author">child</th>
241 <td>{rev}:<a href="{url|urlescape}comparison/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a>
242 </td>
243 </tr>'
244
245 filediffparent = '
246 <tr>
247 <th class="author">parent</th>
248 <td>{rev}:<a href="{url|urlescape}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td>
249 </tr>'
250 filediffchild = '
251 <tr>
252 <th class="author">child</th>
253 <td>{rev}:<a href="{url|urlescape}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a>
254 </td>
255 </tr>'
256
257 indexentry = '
258 <tr>
259 <td><a href="{url|urlescape}{sessionvars%urlparameter}">{name|escape}</a></td>
260 <td>{description}</td>
261 <td>{contact|obfuscate}</td>
262 <td class="age">{lastchange|rfc822date}</td>
263 <td class="indexlinks">
264 {archives%indexarchiveentry}
265 </td>
266 <td class="indexlinks">
267 {if(isdirectory, '',
268 '<a href="{url|urlescape}rss-log" title="subscribe to repository RSS feed">
269 &nbsp;<img class="rss-logo" src="{staticurl|urlescape}feed-icon-14x14.png" alt="subscribe to repository RSS feed">
270 </a>
271 <a href="{url|urlescape}atom-log" title="subscribe to repository Atom feed">
272 &nbsp;<img class="atom-logo" src="{staticurl|urlescape}feed-icon-14x14.png" alt="subscribe to repository Atom feed">
273 </a>'
274 )}
275 </td>
276 </tr>\n'
277 indexarchiveentry = '<a href="{url|urlescape}archive/{node|short}{extension|urlescape}">&nbsp;&darr;{type|escape}&nbsp;</a>'
278 index = index.tmpl
279 archiveentry = '
280 <li>
281 <a href="{url|urlescape}archive/{symrev}{extension|urlescape}{ifeq(path,'/','',path|urlescape)}">{type|escape}</a>
282 </li>'
283 notfound = notfound.tmpl
284 error = error.tmpl
285 urlparameter = '{separator}{name}={value|urlescape}'
286 hiddenformentry = '<input type="hidden" name="{name}" value="{value|escape}" />'
287 breadcrumb = '&gt; <a href="{url|urlescape}">{name|escape}</a> '
288
289 searchform = '
290 <form class="search" action="{url|urlescape}log">
291 {sessionvars%hiddenformentry}
292 <p><input name="rev" id="search1" type="text" size="30" value="{query|escape}" /></p>
293 <div id="hint">{searchhint}</div>
294 </form>
295 <p></p>
296 <hr />'
297 searchhint = 'Find changesets by keywords (author, files, the commit message), revision
298 number or hash, or <a href="{url|urlescape}help/revsets">revset expression</a>.'
299
300 diffoptsform = '
301 <form id="diffopts-form"
302 data-ignorews="{if(get(diffopts, 'ignorews'), '1', '0')}"
303 data-ignorewsamount="{if(get(diffopts, 'ignorewsamount'), '1', '0')}"
304 data-ignorewseol="{if(get(diffopts, 'ignorewseol'), '1', '0')}"
305 data-ignoreblanklines="{if(get(diffopts, 'ignoreblanklines'), '1', '0')}">
306 <span>Ignore whitespace changes - </span>
307 <span>Everywhere:</span>
308 <input id="ignorews-checkbox" type="checkbox" />
309 <span>Within whitespace:</span>
310 <input id="ignorewsamount-checkbox" type="checkbox" />
311 <span>At end of lines:</span>
312 <input id="ignorewseol-checkbox" type="checkbox" />
313 </form>'
314
315 logo = '
316 <div class="logo">
317 <a href="/" title="Trung - Software">
318 <img class="logo invert" src="/logo.png" style="width: 100%; max-width: 41em;" />
319 </a>
320 </div>'
321
322 banner = '
323 <div class="banner mid invert">
324 <img src="https://trung.fun/banners/mid.svg" />
325 </div>'