diff --git a/services/webapp/code/rosetta/core_app/templates/files.html b/services/webapp/code/rosetta/core_app/templates/files.html new file mode 100644 index 0000000000000000000000000000000000000000..6790061998a3d79ca3c4dc34a5a1fbc061e8a7b5 --- /dev/null +++ b/services/webapp/code/rosetta/core_app/templates/files.html @@ -0,0 +1,27 @@ +{% load static %} +{% include "header.html" %} +{% include "navigation.html" with main_path='/main/' %} + +<br/> +<br/> + +<div class="container" style="height:75%;"> + <div class="dashboard" style="height:100%;"> + <div class="span8 offset2" style="height:100%;"> + + + <h1>Files</h1> + + <hr/> + + + <iframe src="/static/RichFilemanager/index.html" style="overflow:hidden;height:100%;width:100%; border: 1px solid #c0c0c0" height="100%" width="100%"></iframe> + + + </div> + </div> +</div> + +{% include "footer.html" %} + + diff --git a/services/webapp/code/rosetta/core_app/templates/navigation.html b/services/webapp/code/rosetta/core_app/templates/navigation.html index f8885d2a80afb0b78849e7ce12a5cce75fd6f237..4696610d78f784751720ccda0c9828806ddba671 100644 --- a/services/webapp/code/rosetta/core_app/templates/navigation.html +++ b/services/webapp/code/rosetta/core_app/templates/navigation.html @@ -33,7 +33,9 @@ <li> <a href="/tasks" onclick = $("#menu-close").click(); >Tasks</a> </li> - + <li> + <a href="/files" onclick = $("#menu-close").click(); >Files</a> + </li> {% else %} <li> diff --git a/services/webapp/code/rosetta/core_app/views.py b/services/webapp/code/rosetta/core_app/views.py index 1b2014ebbafb8ec089d9c4d2acf6b44f0cc5019e..1939a4b3ac06307395422c132fa7a5f59060f614 100644 --- a/services/webapp/code/rosetta/core_app/views.py +++ b/services/webapp/code/rosetta/core_app/views.py @@ -179,11 +179,12 @@ def register_view(request): - @public_view def entrypoint(request): return HttpResponseRedirect('/main/') + + @public_view def main_view(request): @@ -919,7 +920,15 @@ def sharable_link_handler(request, id): +#========================= +# File manager +#========================= +@public_view +def files_view(request): + # Set data & render + data = {} + return render(request, 'files.html', {'data': data}) diff --git a/services/webapp/code/rosetta/urls.py b/services/webapp/code/rosetta/urls.py index f6f48da81055b9f93296fd5ea86ff511256754bb..cd995c3bf6e072815d0fe8ae348a1b7c50cec1bd 100644 --- a/services/webapp/code/rosetta/urls.py +++ b/services/webapp/code/rosetta/urls.py @@ -54,6 +54,7 @@ urlpatterns = [ url(r'^edit_computing_conf/$', core_app_views.edit_computing_conf), url(r'^containers/$', core_app_views.containers), url(r'^add_container/$', core_app_views.add_container), + url(r'^files/$', core_app_views.files_view), # Sharable link for tasks url(r'^t/(?P<id>\w{0,36})/$', core_app_views.sharable_link_handler),