diff pylons_app/templates/files/file_diff.html @ 129:42d46deb124d

implemented simple diffs for history of files.
author Marcin Kuzminski <marcin@python-works.com>
date Tue, 04 May 2010 00:54:00 +0200
parents
children ffddbd80649e
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/pylons_app/templates/files/file_diff.html	Tue May 04 00:54:00 2010 +0200
@@ -0,0 +1,35 @@
+<%inherit file="/base/base.html"/>
+
+<%def name="title()">
+    ${_('Repository managment')}
+</%def>
+<%def name="breadcrumbs()">
+    ${h.link_to(u'Home',h.url('/'))}
+    / 
+    ${h.link_to(c.repo_name,h.url('files_home',repo_name=c.repo_name))}
+    /
+    ${_('files')}
+</%def>
+<%def name="page_nav()">
+        <form action="log">
+            <dl class="search">
+                <dt><label>Search: </label></dt>
+                <dd><input type="text" name="rev" /></dd>
+            </dl>
+        </form>
+
+		${self.menu('files')}     
+</%def>
+<%def name="css()">
+<link rel="stylesheet" href="/css/monoblue_custom.css" type="text/css" />
+<link rel="stylesheet" href="/css/pygments_diff.css" type="text/css" />
+</%def>
+<div></div>
+<%def name="main()">
+    <h2 class="no-link no-border">${'%s: %s@%s %s %s' % (_('File diff'),c.f_path,c.diff2,'&rarr;',c.diff1)|n}</h2>
+	<div id="files_data">
+		<div id="body" class="codeblock">
+			${h.pygmentize(c.diff,linenos=True,anchorlinenos=True,cssclass="code-diff")}
+		</div>
+	</div>
+</%def>    
\ No newline at end of file