mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-16 01:57:13 +00:00
Allow edit of another non .txt file
This commit is contained in:
@@ -419,7 +419,7 @@ def editexpopage(request, path):
|
||||
|
||||
# detect if this is a text file for editing
|
||||
filepath = Path(settings.EXPOWEB) / path
|
||||
if filepath.suffix in [".txt", ".sty", ".tex"] or filepath.name == "Makefile":
|
||||
if filepath.suffix in [".txt", ".sty", ".tex"] or filepath.name == "Makefile" or filepath.name == "cave-number-index":
|
||||
print("Editing TEXT file", filepath)
|
||||
return edittxtpage(request, path, filepath)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user