mirror of
https://github.com/Xevion/simple-viewer.git
synced 2025-12-06 23:16:25 -06:00
begin working on add directory functionality, finished bulma frontend form design
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import os
|
||||
|
||||
from django.http import FileResponse
|
||||
from django.http import FileResponse, HttpResponse
|
||||
from django.shortcuts import render, get_object_or_404
|
||||
|
||||
from viewer.helpers import extra_listdir
|
||||
@@ -54,3 +54,11 @@ def file(request, directory_id, file):
|
||||
)
|
||||
}
|
||||
return render(request, 'message.html', context, status=500)
|
||||
|
||||
|
||||
def add(request):
|
||||
return render(request, 'add.html', {'title': 'Add New Directory'})
|
||||
|
||||
|
||||
def submit_new(request):
|
||||
return HttpResponse('')
|
||||
|
||||
Reference in New Issue
Block a user