#
#
# add_file "templates/branch.html"
# content [e37668c02c96b419b0985a799550677b90737ae5]
#
# add_file "templates/branchchanges.html"
# content [40fd79c1afb1a371288d26707f8592115dc09e36]
#
# patch "viewmtn.py"
# from [4c360bf87f4a6ea25319c1ad982230ed3e13ea6d]
# to [1001ee02e7b1f4554682a8cc0544e161deff6fde]
#
============================================================
--- templates/branch.html e37668c02c96b419b0985a799550677b90737ae5
+++ templates/branch.html e37668c02c96b419b0985a799550677b90737ae5
@@ -0,0 +1,7 @@
+#extends base
+
+#def extramenu
+Branch $branch.name:
+Changes |
+Head revision
+#end def
============================================================
--- templates/branchchanges.html 40fd79c1afb1a371288d26707f8592115dc09e36
+++ templates/branchchanges.html 40fd79c1afb1a371288d26707f8592115dc09e36
@@ -0,0 +1,7 @@
+#extends branch
+
+#def body
+
+Woo, changes.
+
+#end def
============================================================
--- viewmtn.py 4c360bf87f4a6ea25319c1ad982230ed3e13ea6d
+++ viewmtn.py 1001ee02e7b1f4554682a8cc0544e161deff6fde
@@ -180,7 +180,8 @@ class Renderer:
def __init__(self):
# any templates that can be inherited from, should be added to the list here
self.templates = [ ('base.html', 'base'),
- ('revision.html', 'revision'), ]
+ ('revision.html', 'revision'),
+ ('branch.html', 'branch') ]
self._templates_loaded = False
# these variables will be available to any template
@@ -232,6 +233,17 @@ class Help:
def GET(self):
renderer.render('help.html', page_title="Help")
+class BranchChanges:
+ def GET(self, branch):
+ branch = mtn.Branch(branch)
+ renderer.render('branchchanges.html',
+ page_title="Branch %s" % branch,
+ branch=branch)
+
+class RevisionBrowse:
+ def GET(self, revision):
+ print "not implemented..."
+
class RevisionInfo:
def GET(self, revision):
revision = mtn.Revision(revision)