add saving favorite locations
[qcg-portal.git] / filex / templates / filex / source.js.html
index f7336aa..18cc281 100644 (file)
@@ -1,4 +1,4 @@
-{% load staticfiles %}
+{% load staticfiles filex %}
 
 <script src="{% static 'qcg/selectize/selectize.min.js' %}"></script>
 <script src="{% static 'filex/underscore/underscore.js' %}"></script>
@@ -8,16 +8,7 @@
 <script>
     var filex;
     $(function() {
-        filex = new Filex.FilexView({
-            host: 'qcg.man.poznan.pl',
-            hostOptions: [
-                {host: 'qcg.man.poznan.pl', path: '/home/plgrid/{{ request.user.username }}/reef'},
-                {host: 'ui.grid.icm.edu.pl', path: '/icm/hydra/home/grid/{{ request.user.username }}'},
-                {host: 'ui.plgrid.wcss.wroc.pl', path: '/home/grid/users/{{ request.user.username }}'},
-                {host: 'ui.grid.task.gda.pl', path: '/home/plgrid/{{ request.user.username }}'},
-                {host: 'zeus.cyfronet.pl', path: '/people/{{ request.user.username }}'}
-            ]
-        });
+        filex = new Filex.FilexView({locations: {% locations %}});
     });
 </script>