hg: install hgweb templates
This commit is contained in:
parent
e437b1b289
commit
e74d851d69
127 changed files with 5752 additions and 4 deletions
10
sys/lib/python/mercurial/templates/atom/changelog.tmpl
Normal file
10
sys/lib/python/mercurial/templates/atom/changelog.tmpl
Normal file
|
@ -0,0 +1,10 @@
|
|||
{header}
|
||||
<!-- Changelog -->
|
||||
<id>{urlbase}{url}</id>
|
||||
<link rel="self" href="{urlbase}{url}atom-log"/>
|
||||
<link rel="alternate" href="{urlbase}{url}"/>
|
||||
<title>{repo|escape} Changelog</title>
|
||||
{latestentry%feedupdated}
|
||||
|
||||
{entries%changelogentry}
|
||||
</feed>
|
16
sys/lib/python/mercurial/templates/atom/changelogentry.tmpl
Normal file
16
sys/lib/python/mercurial/templates/atom/changelogentry.tmpl
Normal file
|
@ -0,0 +1,16 @@
|
|||
<entry>
|
||||
<title>{desc|strip|firstline|strip|escape|nonempty}</title>
|
||||
<id>{urlbase}{url}#changeset-{node}</id>
|
||||
<link href="{urlbase}{url}rev/{node}"/>
|
||||
<author>
|
||||
<name>{author|person|escape}</name>
|
||||
<email>{author|email|obfuscate}</email>
|
||||
</author>
|
||||
<updated>{date|rfc3339date}</updated>
|
||||
<published>{date|rfc3339date}</published>
|
||||
<content type="xhtml">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml">
|
||||
<pre xml:space="preserve">{desc|escape|nonempty}</pre>
|
||||
</div>
|
||||
</content>
|
||||
</entry>
|
17
sys/lib/python/mercurial/templates/atom/error.tmpl
Normal file
17
sys/lib/python/mercurial/templates/atom/error.tmpl
Normal file
|
@ -0,0 +1,17 @@
|
|||
{header}
|
||||
<!-- Error -->
|
||||
<id>{urlbase}{url}</id>
|
||||
<link rel="self" href="{urlbase}{url}atom-log"/>
|
||||
<link rel="alternate" href="{urlbase}{url}"/>
|
||||
<title>Error</title>
|
||||
<updated>1970-01-01T00:00:00+00:00</updated>
|
||||
<entry>
|
||||
<title>Error</title>
|
||||
<id>http://mercurial.selenic.com/#error</id>
|
||||
<author>
|
||||
<name>mercurial</name>
|
||||
</author>
|
||||
<updated>1970-01-01T00:00:00+00:00</updated>
|
||||
<content type="text">{error|escape}</content>
|
||||
</entry>
|
||||
</feed>
|
8
sys/lib/python/mercurial/templates/atom/filelog.tmpl
Normal file
8
sys/lib/python/mercurial/templates/atom/filelog.tmpl
Normal file
|
@ -0,0 +1,8 @@
|
|||
{header}
|
||||
<id>{urlbase}{url}atom-log/tip/{file|escape}</id>
|
||||
<link rel="self" href="{urlbase}{url}atom-log/tip/{file|urlescape}"/>
|
||||
<title>{repo|escape}: {file|escape} history</title>
|
||||
{latestentry%feedupdated}
|
||||
|
||||
{entries%changelogentry}
|
||||
</feed>
|
2
sys/lib/python/mercurial/templates/atom/header.tmpl
Normal file
2
sys/lib/python/mercurial/templates/atom/header.tmpl
Normal file
|
@ -0,0 +1,2 @@
|
|||
<?xml version="1.0" encoding="{encoding}"?>
|
||||
<feed xmlns="http://www.w3.org/2005/Atom">
|
11
sys/lib/python/mercurial/templates/atom/map
Normal file
11
sys/lib/python/mercurial/templates/atom/map
Normal file
|
@ -0,0 +1,11 @@
|
|||
default = 'changelog'
|
||||
feedupdated = '<updated>{date|rfc3339date}</updated>'
|
||||
mimetype = 'application/atom+xml; charset={encoding}'
|
||||
header = header.tmpl
|
||||
changelog = changelog.tmpl
|
||||
changelogentry = changelogentry.tmpl
|
||||
filelog = filelog.tmpl
|
||||
filelogentry = filelogentry.tmpl
|
||||
tags = tags.tmpl
|
||||
tagentry = tagentry.tmpl
|
||||
error = error.tmpl
|
8
sys/lib/python/mercurial/templates/atom/tagentry.tmpl
Normal file
8
sys/lib/python/mercurial/templates/atom/tagentry.tmpl
Normal file
|
@ -0,0 +1,8 @@
|
|||
<entry>
|
||||
<title>{tag|escape}</title>
|
||||
<link rel="alternate" href="{urlbase}{url}rev/{node}"/>
|
||||
<id>{urlbase}{url}#tag-{node}</id>
|
||||
<updated>{date|rfc3339date}</updated>
|
||||
<published>{date|rfc3339date}</published>
|
||||
<content type="text">{tag|strip|escape}</content>
|
||||
</entry>
|
11
sys/lib/python/mercurial/templates/atom/tags.tmpl
Normal file
11
sys/lib/python/mercurial/templates/atom/tags.tmpl
Normal file
|
@ -0,0 +1,11 @@
|
|||
{header}
|
||||
<id>{urlbase}{url}</id>
|
||||
<link rel="self" href="{urlbase}{url}atom-tags"/>
|
||||
<link rel="alternate" href="{urlbase}{url}tags"/>
|
||||
<title>{repo|escape}: tags</title>
|
||||
<summary>{repo|escape} tag history</summary>
|
||||
<author><name>Mercurial SCM</name></author>
|
||||
{latestentry%feedupdated}
|
||||
|
||||
{entriesnotip%tagentry}
|
||||
</feed>
|
Loading…
Add table
Add a link
Reference in a new issue