Mercurial > hg
changeset 21057:19ee4923a2b6
hgweb: adding branch, tags, bookmarks, user, and file list to rss feed entries
author | Aaron Jensen <ajensen@webmd.net> |
---|---|
date | Wed, 16 Apr 2014 09:32:04 -0700 |
parents | d70703954a2a |
children | 5152afc145e5 |
files | mercurial/templates/rss/changelogentry.tmpl mercurial/templates/rss/map |
diffstat | 2 files changed, 38 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/templates/rss/changelogentry.tmpl Wed Apr 16 09:31:37 2014 -0700 +++ b/mercurial/templates/rss/changelogentry.tmpl Wed Apr 16 09:32:04 2014 -0700 @@ -1,7 +1,39 @@ <item> - <title>{desc|strip|firstline|strip|escape}</title> + <title>{branches%"{if(name, '[{name|escape}] ')}"}{desc|strip|firstline|strip|escape}</title> <guid isPermaLink="true">{urlbase}{url|urlescape}rev/{node|short}</guid> - <description><![CDATA[{desc|strip|escape|addbreaks|nonempty}]]></description> + <description> + <![CDATA[ + <table> + <tr> + <th style="text-align:left;">changeset</th> + <td>{node|short}</td> + </tr> + <tr> + <th style="text-align:left;">branch</th> + <td>{branches%"{name|escape}"}</td> + </tr> + <tr> + <th style="text-align:left;">bookmark</th> + <td>{bookmarks%"{name|escape}"}</td> + </tr> + <tr> + <th style="text-align:left;">tag</th> + <td>{tags%"{name|escape}"}</td> + </tr> + <tr> + <th style="text-align:left;vertical-align:top;">user</th> + <td>{author|obfuscate}</td> + </tr> + <tr> + <th style="text-align:left;vertical-align:top;">description</th> + <td>{desc|strip|escape|addbreaks|nonempty}</td> + </tr> + <tr> + <th style="text-align:left;vertical-align:top;">files</th> + <td>{files}</td> + </tr> + </table> + ]]></description> <author>{author|obfuscate}</author> <pubDate>{date|rfc822date}</pubDate> </item>
--- a/mercurial/templates/rss/map Wed Apr 16 09:31:37 2014 -0700 +++ b/mercurial/templates/rss/map Wed Apr 16 09:32:04 2014 -0700 @@ -12,3 +12,7 @@ branches = branches.tmpl branchentry = branchentry.tmpl error = error.tmpl +filedifflink = '{file|escape}<br />' +fileellipses = '{file|escape}<br />' +filenodelink = '{file|escape}<br />' +filenolink = '{file|escape}<br />'