Mercurial > hg > mercurial-crew-with-dirclash
diff templates/filediff.tmpl @ 142:529bf610092e
Prettify the web interface
Add header, footer templates
Add null parent handling
Combine files and directories
Add parity flag for alternating line colors
Add line numbers to filerevision
author | mpm@selenic.com |
---|---|
date | Mon, 23 May 2005 20:57:48 -0800 |
parents | c77a679e9cfa |
children | e8a360cd5a9f 083c38bdfa64 |
line wrap: on
line diff
--- a/templates/filediff.tmpl +++ b/templates/filediff.tmpl @@ -1,30 +1,31 @@ -Content-type: text/html +#header# +<title>#repo#: #file# diff</title> +</head> +<body> -<html> -<body> +<div class=buttons> <a href="?cmd=changelog&rev=#rev#">changelog</a> <a href="?cmd=changeset&node=#node#">changeset</a> <a href="?cmd=file&file=#file#&filenode=#filenode#">file</a> <a href="?cmd=filelog&file=#file#&filenode=#filenode#">revisions</a> <a href="?cmd=annotate&file=#file#&filenode=#filenode#">annotate</a> +</div> <h2>#file#</h2> <table> <tr> - <td align=right>revision:</td> + <td class=metatag>revision:</td> <td><a href="?cmd=changeset;node=#node#">#rev#:#node#</a></td></tr> <tr> - <td align=right>parent:</td> + <td class=metatag>parent:</td> <td><a href="?cmd=changeset;node=#p1#">#p1rev#:#p1#</a></td></tr> </table> -<hr /> -<pre> +<pre class=parity0> #diff# </pre> -</body> -</html +#footer#