From 29e6020574e1bed81e20cf5ab5df521285d28615 Mon Sep 17 00:00:00 2001 From: Alexander Tkachev Date: Mon, 11 Jul 2016 14:44:15 +0600 Subject: CLOUD: Update "/files" hardcoded response template --- .../sdl_net/handlers/filespagehandler.cpp | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'backends/networking') diff --git a/backends/networking/sdl_net/handlers/filespagehandler.cpp b/backends/networking/sdl_net/handlers/filespagehandler.cpp index 4de76b9d07..9dba0c54ad 100644 --- a/backends/networking/sdl_net/handlers/filespagehandler.cpp +++ b/backends/networking/sdl_net/handlers/filespagehandler.cpp @@ -46,7 +46,26 @@ Common::String encodeDoubleQuotes(Common::String s) { } void FilesPageHandler::handle(Client &client) { - Common::String response = "ScummVM{content}
"; //TODO: add controls + Common::String response = + "" \ + "ScummVM" \ + "" \ + "

{create_directory_desc}

" \ + "
" \ + "" \ + "" \ + "" \ + "
" \ + "
" \ + "

{upload_file_desc}

" \ + "
" \ + "" \ + "" \ + "
" + "
" \ + "{content}
" \ + "" \ + ""; Common::String itemTemplate = "{name}{size}\n"; //TODO: load this template too? // load stylish response page from the archive -- cgit v1.2.3