mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-10-19 22:27:20 +02:00
display json file
This commit is contained in:
1 parent
2aee95c7a8
commit
fec96a326e
1 file changed
+1
-1
@@ -54,7 +54,7 @@ class Anonymous_Github:
|
||||
return Markup("<img src='%s' alt='%s'>" % (file.url, file.name))
|
||||
if ".html" in file.name:
|
||||
return removeTerms(Markup(file.decoded_content), terms)
|
||||
if ".txt" in file.name or ".log" in file.name or ".xml" in file.name or ".java" in file.name or ".py" in file.name:
|
||||
if ".txt" in file.name or ".log" in file.name or ".xml" in file.name or ".json" in file.name or ".java" in file.name or ".py" in file.name:
|
||||
return removeTerms(Markup("<pre>" + file.decoded_content + "</pre>"), terms)
|
||||
return Markup("<a href='%s'>Download %s</a>" % (file.url, file.name))
|
||||
|
||||
|
||||
Reference in new issue
Block a user