Diff of /Allura/allura/controllers/attachments.py [c4f76a] .. [9d8474] Maximize Restore

  Switch to side-by-side view

--- a/Allura/allura/controllers/attachments.py
+++ b/Allura/allura/controllers/attachments.py
@@ -64,7 +64,10 @@
                 except exc.HTTPNotFound:
                     pass
             redirect(request.referer)
-        return self.attachment.serve(embed=False)
+        embed=False
+        if self.attachment.content_type and 'image/' in self.attachment.content_type:
+            embed = True
+        return self.attachment.serve(embed=embed)
 
     @expose()
     def thumb(self):