mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-02-13 19:02:45 +00:00
display json file
This commit is contained in:
@@ -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