# # # add_file "templates/revisiondiff.html" # content [06acbfdf78bebdc5ef8f0652278dfa829d49fbba] # # add_file "templates/revisionfile.html" # content [8a090c4dd2419ae56b79a4b3567db21ac7920e01] # # patch "static/viewmtn.css" # from [377c58c351ab0bb6d4153b02cfbe95af68fa2514] # to [86b42ee85d6360f44f94a5e2a0da26007246345c] # # patch "templates/about.html" # from [6b1c55564ae50e2de59d5eda418bfad86f0b596d] # to [2036ac18da76b817890897d85a9bf7ada97b65ee] # # patch "viewmtn.py" # from [88c855a6669379de6be323446fd8e72f22f8a630] # to [98f8dce8a36144fb3572692acaeaff264e206844] # ============================================================ --- templates/revisiondiff.html 06acbfdf78bebdc5ef8f0652278dfa829d49fbba +++ templates/revisiondiff.html 06acbfdf78bebdc5ef8f0652278dfa829d49fbba @@ -0,0 +1,29 @@ +#extends revision + +#def body + + +#filter Filter +

+The unified diff between revisions $link($revision_from).html() and $link($revision_to).html() is displayed below. +

+#filter WebSafe + +#if $files +

+This diff has been restricted to the following files: + #for $fname in $files + '$fname' + #end for +

+#end if + +
+#filter Filter
+#for $line in $diff
+$line
+#end for
+#filter WebSafe
+
+ +#end def ============================================================ --- templates/revisionfile.html 8a090c4dd2419ae56b79a4b3567db21ac7920e01 +++ templates/revisionfile.html 8a090c4dd2419ae56b79a4b3567db21ac7920e01 @@ -0,0 +1,17 @@ +#extends revision + +#def body + +

+Below is the file '$file' from this revision. +

+ +
+#filter Filter
+#for $line in $contents
+$line
+#end for
+#filter WebSafe
+
+ +#end def ============================================================ --- static/viewmtn.css 377c58c351ab0bb6d4153b02cfbe95af68fa2514 +++ static/viewmtn.css 86b42ee85d6360f44f94a5e2a0da26007246345c @@ -94,7 +94,7 @@ PRE.code { PRE.code { border-left-style: solid; - border-left-width: 1px; - border-left-color: black; + border-left-width: 3px; + border-left-color: #A0A0A0; padding-left: 3px; } ============================================================ --- templates/about.html 6b1c55564ae50e2de59d5eda418bfad86f0b596d +++ templates/about.html 2036ac18da76b817890897d85a9bf7ada97b65ee @@ -5,18 +5,18 @@

Authors and Contributors

Licensing

-Copyright (C) 2005 Grahame Bowland +Copyright (C) 2005-2006 Grahame Bowland

@@ -42,26 +42,12 @@ Foundation, Inc., 59 Temple Place, Suite

Dependencies

-ViewMTN is written in Python and -runs under mod_python. +ViewMTN is written in Python and runs under web.py. Code highlighting via Highlight. +Graphing via GraphViz. Graph colour generation algorithm +from monotone-viz with modifications from Matt Johnston. AJAX funtionality uses the MochiKit Javascript library.

-

-Code highlighting via -GNU Enscript. -

-

-Graphing via GraphViz. -

- -

-Graph colour generation algorithm from monotone-viz with modifications from Matt Johnston. -

- -

-AJAX funtionality uses the MochiKit Javascript library. -

- - #end def ============================================================ --- viewmtn.py 88c855a6669379de6be323446fd8e72f22f8a630 +++ viewmtn.py 98f8dce8a36144fb3572692acaeaff264e206844 @@ -147,6 +147,9 @@ def revisions_for_template(revision, rev elif stanza_type == "add_dir": dname = stanza[1] value = "Add directory: %s" % (hq(dname)) + elif stanza_type == "delete": + fname = stanza[1] + value = "Delete: %s" % (hq(fname)) elif stanza_type == "set": fname, attr, value = stanza[1], stanza[3], stanza[5] value = "Set attribute '%s' to '%s' upon %s" % (hq(attr), hq(value), link(mtn.File(fname, revision)).html())