# # # add_file "templates/revisionfileobj.html" # content [aecf0edca364646c23f9fecfb764159a73b4d7d1] # # patch "viewmtn.py" # from [b7e700fb84ff8a7c9e5e014fe97429e663d4b1ac] # to [69e2dcd2f0c2597133fe1988d2308c4b782ef7cf] # ============================================================ --- templates/revisionfileobj.html aecf0edca364646c23f9fecfb764159a73b4d7d1 +++ templates/revisionfileobj.html aecf0edca364646c23f9fecfb764159a73b4d7d1 @@ -0,0 +1,11 @@ +#extends revisionfile + +#def filecontents + +Your browser doesn't support viewing content of type $mimetype. Use the download +link from above instead. + +#end def ============================================================ --- viewmtn.py b7e700fb84ff8a7c9e5e014fe97429e663d4b1ac +++ viewmtn.py 69e2dcd2f0c2597133fe1988d2308c4b782ef7cf @@ -539,6 +539,8 @@ class RevisionFile(RevisionPage): 'image/jpeg' : 'revisionfileimg.html', 'image/png' : 'revisionfileimg.html', 'image/gif' : 'revisionfileimg.html', + 'image/svg+xml' : 'revisionfileobj.html', + 'application/pdf' : 'revisionfileobj.html', 'application/x-python' : 'revisionfiletxt.html', 'application/x-perl' : 'revisionfiletxt.html', }